Skip to content

Commit

Permalink
Merge pull request #85 from adityarj/master
Browse files Browse the repository at this point in the history
Changed model input file name in readme line-by-line example
  • Loading branch information
jsvine committed Nov 12, 2017
2 parents f08065c + ddef291 commit e7c93d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ combined_model = None
for (dirpath, _, filenames) in os.walk("path/to/my/huge/corpus"):
for filename in filenames:
with open(os.path.join(dirpath, filename)) as f:
model = markovify.Text(file, retain_original=False)
model = markovify.Text(f, retain_original=False)
if combined_model:
combined_model = markovify.combine(models=[combined_model, model])
else:
Expand Down

0 comments on commit e7c93d3

Please sign in to comment.