Datasets:
fixed last line bug
Browse files
TGIF.py
CHANGED
@@ -99,7 +99,7 @@ class TGIF(datasets.GeneratorBasedBuilder):
|
|
99 |
dict[line] = []
|
100 |
for path, f in files:
|
101 |
if path.endswith("tgif-v1.0.tsv"):
|
102 |
-
tsv_file = f.read().decode("utf-8").split("\n")
|
103 |
tsv_reader = csv.reader(tsv_file, delimiter="\t", quotechar='"' )
|
104 |
for idx, (video_link, text) in enumerate(tsv_reader):
|
105 |
try:
|
|
|
99 |
dict[line] = []
|
100 |
for path, f in files:
|
101 |
if path.endswith("tgif-v1.0.tsv"):
|
102 |
+
tsv_file = f.read().decode("utf-8").split("\n")[-1]
|
103 |
tsv_reader = csv.reader(tsv_file, delimiter="\t", quotechar='"' )
|
104 |
for idx, (video_link, text) in enumerate(tsv_reader):
|
105 |
try:
|