diff --git a/nlp-sentiment-analysis/README.md b/nlp-sentiment-analysis/README.md index 12b1a34a56..82436cec05 100644 --- a/nlp-sentiment-analysis/README.md +++ b/nlp-sentiment-analysis/README.md @@ -1,6 +1,6 @@ # Use Sentiment Analysis With Python to Classify Reviews -Resources and materials for Real Python's [Use Sentiment Analysis With Python to Classify Reviews](https://realpython.com/use-sentiment-analysis-python-classify-movie-reviews/) tutorial. +Resources and materials for Real Python's [Use Sentiment Analysis With Python to Classify Reviews](https://realpython.com/sentiment-analysis-python/) tutorial. ## Installation @@ -17,10 +17,12 @@ Install Python dependencies into the active virtual environment: (.venv) $ python -m pip install -r requirements.txt ``` -Download English model for spaCy: +Install the English language model for spaCy: ```shell -(.venv) $ python -m spacy download en_core_web_sm +(.venv) $ python -m pip install \ + https://github.com/explosion/spacy-models/releases/download/\ +en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz ``` Download and extract the [Large Movie Review Dataset](https://ai.stanford.edu/~amaas/data/sentiment/) compiled by [Andrew Maas](http://www.andrew-maas.net/): diff --git a/nlp-sentiment-analysis/requirements.txt b/nlp-sentiment-analysis/requirements.txt index fb45298dc9..4bbcc3fcbe 100644 --- a/nlp-sentiment-analysis/requirements.txt +++ b/nlp-sentiment-analysis/requirements.txt @@ -1,2 +1,4 @@ -pandas==1.1.2 -spacy==2.3.2 +numpy==1.26.4 +pandas==2.3.3 +setuptools==80.10.2 +spacy==2.3.9