rain1024 commited on
Commit
9ee7640
1 Parent(s): ad00e52
Files changed (1) hide show
  1. 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
- if line.startswith("-DOCSTART-") or line == "" or line == "\n":
 
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 = []