Upload erukaLabels.py
Browse files- 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 |
-
|
|
|
|
| 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 |
|