Skip to content

Commit

Permalink
Fixed bug where a required NLTK package would not install on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
self committed Mar 11, 2023
1 parent 6516dc5 commit 090847b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ def get_text_tokens(self, prompt: str, max_token_ct: int = 200) -> tuple:
nltk.download('punkt', quiet=True, raise_on_error=True)
nltk.download('averaged_perceptron_tagger', quiet=True, raise_on_error=True)
nltk.download('maxent_ne_chunker', quiet=True, raise_on_error=True)
nltk.download('vader_lexicon', quiet=True, raise_on_error=True)
nltk.download('words', quiet=True, raise_on_error=True)
info('NLTK Loaded', 'good')

Expand Down

0 comments on commit 090847b

Please sign in to comment.