Arie Cattan commited on
Commit
03cfec8
·
1 Parent(s): 25b5bd9
Files changed (1) hide show
  1. scico.py +1 -7
scico.py CHANGED
@@ -47,7 +47,6 @@ class Scico(datasets.GeneratorBasedBuilder):
47
  "metadata": datasets.features.Sequence(
48
  {
49
  "title": datasets.features.Value("string"),
50
- # "_merge": datasets.features.Value("string"),
51
  "paper_sha": datasets.features.Value("string"),
52
  "fields_of_study": datasets.features.Sequence(datasets.features.Value("string")),
53
  "Year": datasets.features.Value("string"),
@@ -85,9 +84,4 @@ class Scico(datasets.GeneratorBasedBuilder):
85
  print(filepath)
86
  with jsonlines.open(filepath, 'r') as f:
87
  for i, topic in enumerate(f):
88
- new_topic = topic.copy()
89
- metadata = topic['metadata'].copy()
90
- if '_merge' in metadata:
91
- del metadata['_merge']
92
- new_topic['metadata'] = metadata
93
- yield i, new_topic
 
47
  "metadata": datasets.features.Sequence(
48
  {
49
  "title": datasets.features.Value("string"),
 
50
  "paper_sha": datasets.features.Value("string"),
51
  "fields_of_study": datasets.features.Sequence(datasets.features.Value("string")),
52
  "Year": datasets.features.Value("string"),
 
84
  print(filepath)
85
  with jsonlines.open(filepath, 'r') as f:
86
  for i, topic in enumerate(f):
87
+ yield i, topic