Skip to content

Commit

Permalink
Slightly modified output if not learned yet
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Jul 28, 2021
1 parent ed6dbc2 commit c17150d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkovChainBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def generate(self, params: List[str] = None) -> "Tuple[str, bool]":
# Then the params did not result in an actual sentence
# If so, restart without params
if len(params) > 0 and params == sentences[0]:
return "I haven't yet learned what to do with \"" + detokenize(params[-self.key_length:]) + "\"", False
return "I haven't learned what to do with \"" + detokenize(params[-self.key_length:]) + "\" yet.", False

return self.sent_separator.join(detokenize(sentence) for sentence in sentences), True

Expand Down

0 comments on commit c17150d

Please sign in to comment.