Skip to content

Commit

Permalink
Merge pull request #187 from joshprewer/delim-fix
Browse files Browse the repository at this point in the history
Delim is applied across whole text file
  • Loading branch information
minimaxir committed Jul 14, 2020
2 parents 2f17b00 + 6b1dda3 commit ee8b9e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion textgenrnn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def textgenrnn_texts_from_file(file_path, header=True,
if row:
texts.append(row[0])
else:
texts = [line.rstrip(delim) for line in f]
text_data = f.read()
texts = text_data.split(delim)

return texts

Expand Down

0 comments on commit ee8b9e8

Please sign in to comment.