crystina-z
commited on
Commit
·
7d8eae6
1
Parent(s):
7fd1f30
Update hc4-corpus.py
Browse files- hc4-corpus.py +2 -2
hc4-corpus.py
CHANGED
@@ -46,7 +46,7 @@ langs = [
|
|
46 |
_DESCRIPTION = 'dataset load script for HC4 Corpus'
|
47 |
|
48 |
|
49 |
-
class
|
50 |
BUILDER_CONFIGS = [
|
51 |
datasets.BuilderConfig(
|
52 |
version=datasets.Version('1.0.0'),
|
@@ -95,4 +95,4 @@ class BeirCorpus(datasets.GeneratorBasedBuilder):
|
|
95 |
|
96 |
dataset = ir_datasets.load(f'hc4/{lang}')
|
97 |
for doc in dataset.docs_iter():
|
98 |
-
yield doc.doc_id, {'docid': doc.
|
|
|
46 |
_DESCRIPTION = 'dataset load script for HC4 Corpus'
|
47 |
|
48 |
|
49 |
+
class HC4Corpus(datasets.GeneratorBasedBuilder):
|
50 |
BUILDER_CONFIGS = [
|
51 |
datasets.BuilderConfig(
|
52 |
version=datasets.Version('1.0.0'),
|
|
|
95 |
|
96 |
dataset = ir_datasets.load(f'hc4/{lang}')
|
97 |
for doc in dataset.docs_iter():
|
98 |
+
yield doc.doc_id, {'docid': doc.doc_id, 'title': doc.title, 'url': doc.url}
|