Datasets:

Languages:
English
ArXiv:
License:
yasumasaonoe commited on
Commit
78b62e0
·
verified ·
1 Parent(s): e1d29f7

Update docci.py

Browse files
Files changed (1) hide show
  1. docci.py +1 -1
docci.py CHANGED
@@ -105,7 +105,7 @@ class DOCCI(datasets.GeneratorBasedBuilder):
105
 
106
  def _generate_examples_docci(self, data, split):
107
  with open(data["descriptions"], "r") as f:
108
- examples = [json.loads(l.stript()) for l in f]
109
 
110
  for ex in annotations["images"]:
111
  if split == "train":
 
105
 
106
  def _generate_examples_docci(self, data, split):
107
  with open(data["descriptions"], "r") as f:
108
+ examples = [json.loads(l.strip()) for l in f]
109
 
110
  for ex in annotations["images"]:
111
  if split == "train":