Skip to content

Commit

Permalink
Remove redundant Python2 int converting relics
Browse files Browse the repository at this point in the history
  • Loading branch information
eumiro committed Feb 4, 2021
1 parent 1017b6d commit e1c894d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markovify/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_sentence_output(self, words, max_overlap_ratio,
number of words, and (b) `max_overlap_total` (default: 15).
"""
# Reject large chunks of similarity
overlap_ratio = int(round(max_overlap_ratio * len(words)))
overlap_ratio = round(max_overlap_ratio * len(words))
overlap_max = min(max_overlap_total, overlap_ratio)
overlap_over = overlap_max + 1
gram_count = max((len(words) - overlap_max), 1)
Expand Down

0 comments on commit e1c894d

Please sign in to comment.