crystina-z commited on
Commit
7d8eae6
·
1 Parent(s): 7fd1f30

Update hc4-corpus.py

Browse files
Files changed (1) hide show
  1. 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 BeirCorpus(datasets.GeneratorBasedBuilder):
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.docid, 'title': doc.title, 'url': doc.url}
 
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}