Update lscp-500k.py
Browse files- lscp-500k.py +24 -16
lscp-500k.py
CHANGED
@@ -7,7 +7,6 @@ import csv
|
|
7 |
from ast import literal_eval
|
8 |
import datasets
|
9 |
|
10 |
-
|
11 |
logger = datasets.logging.get_logger(__name__)
|
12 |
|
13 |
_CITATION = """\
|
@@ -78,18 +77,29 @@ class LSCP500K(datasets.GeneratorBasedBuilder):
|
|
78 |
"pos_tags": datasets.Sequence(
|
79 |
datasets.features.ClassLabel(
|
80 |
names=[
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
]
|
94 |
)
|
95 |
),
|
@@ -126,6 +136,4 @@ class LSCP500K(datasets.GeneratorBasedBuilder):
|
|
126 |
tokens, pos_tags = row
|
127 |
tokens = literal_eval(tokens)
|
128 |
pos_tags = literal_eval(pos_tags)
|
129 |
-
yield id_, {"tokens": tokens, "pos_tags": pos_tags}
|
130 |
-
|
131 |
-
|
|
|
7 |
from ast import literal_eval
|
8 |
import datasets
|
9 |
|
|
|
10 |
logger = datasets.logging.get_logger(__name__)
|
11 |
|
12 |
_CITATION = """\
|
|
|
77 |
"pos_tags": datasets.Sequence(
|
78 |
datasets.features.ClassLabel(
|
79 |
names=[
|
80 |
+
'P',
|
81 |
+
'Ne',
|
82 |
+
'PRO',
|
83 |
+
'CONJ',
|
84 |
+
'N',
|
85 |
+
'PUNC',
|
86 |
+
'Pe',
|
87 |
+
'ADV',
|
88 |
+
'V',
|
89 |
+
'AJ',
|
90 |
+
'AJe',
|
91 |
+
'DET',
|
92 |
+
'POSTP',
|
93 |
+
'NUM',
|
94 |
+
'DETe',
|
95 |
+
'NUMe',
|
96 |
+
'PROe',
|
97 |
+
'ADVe',
|
98 |
+
'RES',
|
99 |
+
'CL',
|
100 |
+
'INT',
|
101 |
+
'CONJe',
|
102 |
+
'RESe',
|
103 |
]
|
104 |
)
|
105 |
),
|
|
|
136 |
tokens, pos_tags = row
|
137 |
tokens = literal_eval(tokens)
|
138 |
pos_tags = literal_eval(pos_tags)
|
139 |
+
yield id_, {"tokens": tokens, "pos_tags": pos_tags}
|
|
|
|