Commit
·
71f2fa2
1
Parent(s):
b87dbd2
bug fix
Browse files
maker.py
CHANGED
|
@@ -15,7 +15,7 @@ class UDgoeswithDataset(object):
|
|
| 15 |
t=s.split("\t")
|
| 16 |
if len(t)==10 and t[0].isdecimal():
|
| 17 |
c.append(t)
|
| 18 |
-
elif c!=[]:
|
| 19 |
v=tokenizer([t[1] for t in c],add_special_tokens=False)["input_ids"]
|
| 20 |
for i in range(len(v)-1,-1,-1):
|
| 21 |
for j in range(1,len(v[i])):
|
|
|
|
| 15 |
t=s.split("\t")
|
| 16 |
if len(t)==10 and t[0].isdecimal():
|
| 17 |
c.append(t)
|
| 18 |
+
elif c!=[] and s.strip()=="":
|
| 19 |
v=tokenizer([t[1] for t in c],add_special_tokens=False)["input_ids"]
|
| 20 |
for i in range(len(v)-1,-1,-1):
|
| 21 |
for j in range(1,len(v[i])):
|