epptt commited on
Commit
7824bd0
·
1 Parent(s): 8bac845

Upload erukaLabels.py

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