data path changed
Browse files- CoarseWSD-20.py +5 -2
CoarseWSD-20.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
# @title
|
3 |
import json
|
4 |
import datasets
|
5 |
|
@@ -22,7 +22,9 @@ to provide an ideal setting for evaluating WSD models (e.g. no senses in test se
|
|
22 |
from training), both quantitavely and qualitatively.
|
23 |
"""
|
24 |
|
25 |
-
path = "
|
|
|
|
|
26 |
|
27 |
|
28 |
|
@@ -42,6 +44,7 @@ class CWSD20(datasets.GeneratorBasedBuilder):
|
|
42 |
{
|
43 |
"idx": datasets.Value("int32"),
|
44 |
"sentence": datasets.Value("string"),
|
|
|
45 |
# "idx": datasets.Value("int32"),
|
46 |
# "word": datasets.Value("string"),
|
47 |
# "start1": datasets.Value("int32"),
|
|
|
1 |
|
2 |
+
# @title cwsd20 code
|
3 |
import json
|
4 |
import datasets
|
5 |
|
|
|
22 |
from training), both quantitavely and qualitatively.
|
23 |
"""
|
24 |
|
25 |
+
path = "data/apple/train.data.txt"
|
26 |
+
|
27 |
+
|
28 |
|
29 |
|
30 |
|
|
|
44 |
{
|
45 |
"idx": datasets.Value("int32"),
|
46 |
"sentence": datasets.Value("string"),
|
47 |
+
"label": datasets.Value("int32")
|
48 |
# "idx": datasets.Value("int32"),
|
49 |
# "word": datasets.Value("string"),
|
50 |
# "start1": datasets.Value("int32"),
|