Leyo commited on
Commit
5e91d88
·
1 Parent(s): 66fe09e

fixed last line bug

Browse files
Files changed (1) hide show
  1. TGIF.py +1 -1
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: