SuzanaB
commited on
Commit
•
c45ea31
1
Parent(s):
813c4fb
Fix index error
Browse files- janes_tag.py +1 -1
janes_tag.py
CHANGED
@@ -114,7 +114,7 @@ class JanesTag(datasets.GeneratorBasedBuilder):
|
|
114 |
upos_tags = []
|
115 |
data_id = 0
|
116 |
for line in f:
|
117 |
-
if line and line != '\n' and not line.startswith('# global.columns'):
|
118 |
if line.startswith('# sent_id'):
|
119 |
if tokens:
|
120 |
yield data_id, {
|
|
|
114 |
upos_tags = []
|
115 |
data_id = 0
|
116 |
for line in f:
|
117 |
+
if line and line != '\n' and not line.startswith('# global.columns') and not line.startswith('# text'):
|
118 |
if line.startswith('# sent_id'):
|
119 |
if tokens:
|
120 |
yield data_id, {
|