Skip to content

Commit

Permalink
update documentation to clarify that nltk needs to be downloaded in p…
Browse files Browse the repository at this point in the history
…ython
  • Loading branch information
xehu committed Aug 8, 2024
1 parent a63b273 commit 583dcb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ You will also need to ensure that Spacy and NLTK are installed in addition to th
spacy download en_core_web_sm
```

Additionally, we require the following NLTK dependencies:
Additionally, we require the following NLTK dependencies, which need to be downloaded via Python. If you don't have them, run the following python script in your environment:

```python
import nltk

```sh
nltk.download('nps_chat')
nltk.download('punkt')
nltk.download('stopwords')
Expand Down
4 changes: 3 additions & 1 deletion docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ You will also need to ensure that Spacy and NLTK are installed in addition to th
spacy download en_core_web_sm
Additionally, we require the following NLTK dependencies:
Additionally, we require the following NLTK dependencies, which need to be downloaded via Python. If you don't have them, run the following python script in your environment:

.. code-block::
import nltk
nltk.download('nps_chat')
nltk.download('punkt')
nltk.download('stopwords')
Expand Down
4 changes: 3 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ You will also need to ensure that Spacy and NLTK are installed in addition to th
spacy download en_core_web_sm
Additionally, we require the following NLTK dependencies:
Additionally, we require the following NLTK dependencies, which need to be downloaded via Python. If you don't have them, run the following python script in your environment:

.. code-block::
import nltk
nltk.download('nps_chat')
nltk.download('punkt')
nltk.download('stopwords')
Expand Down

0 comments on commit 583dcb7

Please sign in to comment.