Datasets:
Commit
·
c0a497e
1
Parent(s):
7f553d0
Update multiconer_v2.py
Browse files- multiconer_v2.py +2 -1
multiconer_v2.py
CHANGED
@@ -293,7 +293,8 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
|
|
293 |
tokens = []
|
294 |
ner_tags = []
|
295 |
|
296 |
-
for
|
|
|
297 |
if line.strip().startswith("# id"):
|
298 |
s_id = line.split('\t')[0].split(' ')[-1].strip()
|
299 |
guid += 1
|
|
|
293 |
tokens = []
|
294 |
ner_tags = []
|
295 |
|
296 |
+
for l in f:
|
297 |
+
line = l.decode("utf-8")
|
298 |
if line.strip().startswith("# id"):
|
299 |
s_id = line.split('\t')[0].split(' ')[-1].strip()
|
300 |
guid += 1
|