Update lscp-500k.py
Browse files- lscp-500k.py +2 -0
lscp-500k.py
CHANGED
@@ -121,6 +121,8 @@ class LSCP500K(datasets.GeneratorBasedBuilder):
|
|
121 |
csv_file, quotechar='"', skipinitialspace=True
|
122 |
)
|
123 |
for id_, row in enumerate(csv_reader):
|
|
|
|
|
124 |
tokens, pos_tags = row
|
125 |
tokens = literal_eval(tokens)
|
126 |
pos_tags = literal_eval(pos_tags)
|
|
|
121 |
csv_file, quotechar='"', skipinitialspace=True
|
122 |
)
|
123 |
for id_, row in enumerate(csv_reader):
|
124 |
+
if id_ < 1:
|
125 |
+
continue
|
126 |
tokens, pos_tags = row
|
127 |
tokens = literal_eval(tokens)
|
128 |
pos_tags = literal_eval(pos_tags)
|