update
Browse files- UTS_WTK_v1.py +3 -2
UTS_WTK_v1.py
CHANGED
@@ -52,12 +52,13 @@ class UTS_WTK_v1(datasets.GeneratorBasedBuilder):
|
|
52 |
for line in f:
|
53 |
tokens = []
|
54 |
tags = []
|
55 |
-
|
|
|
56 |
if tokens:
|
57 |
yield guid, {
|
58 |
"id": str(guid),
|
59 |
"tokens": tokens,
|
60 |
-
"pos_tags": tags
|
61 |
}
|
62 |
guid += 1
|
63 |
tokens = []
|
|
|
52 |
for line in f:
|
53 |
tokens = []
|
54 |
tags = []
|
55 |
+
print(line)
|
56 |
+
if line == "" or line == "\n":
|
57 |
if tokens:
|
58 |
yield guid, {
|
59 |
"id": str(guid),
|
60 |
"tokens": tokens,
|
61 |
+
"pos_tags": tags,
|
62 |
}
|
63 |
guid += 1
|
64 |
tokens = []
|