Guillaume Wenzek
commited on
Commit
•
b5a508f
1
Parent(s):
7248137
remove \n from line before parsing it
Browse files
nllb.py
CHANGED
@@ -163,7 +163,7 @@ class NLLB(datasets.GeneratorBasedBuilder):
|
|
163 |
# reader = csv.reader(f, delimiter="\t")
|
164 |
for id_, example in enumerate(f):
|
165 |
try:
|
166 |
-
datarow = example.split("\t")
|
167 |
row = {}
|
168 |
# create translation json
|
169 |
row["translation"] = {
|
|
|
163 |
# reader = csv.reader(f, delimiter="\t")
|
164 |
for id_, example in enumerate(f):
|
165 |
try:
|
166 |
+
datarow = example.rstrip("\n").split("\t")
|
167 |
row = {}
|
168 |
# create translation json
|
169 |
row["translation"] = {
|