Datasets:

Languages:
English
ArXiv:
License:
Roihn commited on
Commit
60c4f83
1 Parent(s): a8a4991

Fix: load function

Browse files
Files changed (1) hide show
  1. 2D-ATOMS.py +1 -1
2D-ATOMS.py CHANGED
@@ -50,6 +50,6 @@ class TRIP(datasets.GeneratorBasedBuilder):
50
  # load jsonl file
51
  import json
52
  with open(filepath) as f:
53
- data = [json.loads(line) for line in f]
54
  for i, example in enumerate(data):
55
  yield i, example
 
50
  # load jsonl file
51
  import json
52
  with open(filepath) as f:
53
+ data = json.load(f)
54
  for i, example in enumerate(data):
55
  yield i, example