Datasets:

Size Categories:
100K<n<1M
Annotations Creators:
no-annotation
Source Datasets:
extended|csl
Tags:
License:
eugene-yang commited on
Commit
20f8f70
1 Parent(s): b6d1ec2

handle missing field in English translation

Browse files
Files changed (1) hide show
  1. csl.py +3 -0
csl.py CHANGED
@@ -39,4 +39,7 @@ class Csl(datasets.GeneratorBasedBuilder):
39
  with gzip.open(filepath) as f:
40
  for key, row in enumerate(f):
41
  data = json.loads(row)
 
 
 
42
  yield key, data
 
39
  with gzip.open(filepath) as f:
40
  for key, row in enumerate(f):
41
  data = json.loads(row)
42
+ if "category_eng" not in data:
43
+ data["category_eng"] = ""
44
+ data["discipline_eng"] = ""
45
  yield key, data