labels added
Browse files- CoarseWSD-20.py +1 -1
CoarseWSD-20.py
CHANGED
@@ -96,7 +96,7 @@ class CWSD20(datasets.GeneratorBasedBuilder):
|
|
96 |
with open(ex, encoding="utf-8") as exf:
|
97 |
with open(lb, encoding="utf-8") as lbf:
|
98 |
|
99 |
-
for id_, exi, lbi in enumerate(zip(exf, lbf)):
|
100 |
example = {}
|
101 |
# 'word', 'sentence1', 'sentence2', 'start1', 'start2', 'end1', 'end2', 'idx', 'label'
|
102 |
parts = exi.split("\t")
|
|
|
96 |
with open(ex, encoding="utf-8") as exf:
|
97 |
with open(lb, encoding="utf-8") as lbf:
|
98 |
|
99 |
+
for id_, (exi, lbi) in enumerate(zip(exf, lbf)):
|
100 |
example = {}
|
101 |
# 'word', 'sentence1', 'sentence2', 'start1', 'start2', 'end1', 'end2', 'idx', 'label'
|
102 |
parts = exi.split("\t")
|