epptt commited on
Commit
4788075
·
1 Parent(s): 5d714b9

Upload erukaLabels.py

Browse files
Files changed (1) hide show
  1. erukaLabels.py +1 -1
erukaLabels.py CHANGED
@@ -120,7 +120,7 @@ class Funsd(datasets.GeneratorBasedBuilder):
120
  ner_tags = []
121
 
122
  file_path = os.path.join(ann_dir, file)
123
- with open(file_path, "r") as f:
124
  data = json.load(f, ensure_ascii=False)
125
  image_path = os.path.join(img_dir, file)
126
 
 
120
  ner_tags = []
121
 
122
  file_path = os.path.join(ann_dir, file)
123
+ with open(file_path, "r", encoding="ISO-8859-1") as f:
124
  data = json.load(f, ensure_ascii=False)
125
  image_path = os.path.join(img_dir, file)
126