update
Browse files- UTS_WTK_v1.py +1 -2
UTS_WTK_v1.py
CHANGED
@@ -18,6 +18,7 @@ class UTS_WTK_v1(datasets.GeneratorBasedBuilder):
|
|
18 |
description=_DESCRIPTION,
|
19 |
features=datasets.Features(
|
20 |
{
|
|
|
21 |
"tokens": datasets.Value("string"),
|
22 |
"tags": datasets.Value("string"),
|
23 |
}
|
@@ -65,8 +66,6 @@ class UTS_WTK_v1(datasets.GeneratorBasedBuilder):
|
|
65 |
tags = []
|
66 |
else:
|
67 |
# each line is tab separated
|
68 |
-
# print(line)
|
69 |
splits = line.strip().split("\t")
|
70 |
-
# print(splits)
|
71 |
tokens.append(splits[0])
|
72 |
tags.append(splits[1])
|
|
|
18 |
description=_DESCRIPTION,
|
19 |
features=datasets.Features(
|
20 |
{
|
21 |
+
"id": datasets.Value("string"),
|
22 |
"tokens": datasets.Value("string"),
|
23 |
"tags": datasets.Value("string"),
|
24 |
}
|
|
|
66 |
tags = []
|
67 |
else:
|
68 |
# each line is tab separated
|
|
|
69 |
splits = line.strip().split("\t")
|
|
|
70 |
tokens.append(splits[0])
|
71 |
tags.append(splits[1])
|