From 7bcd4f901b230cc68059977ba0206f1cf1716b1d Mon Sep 17 00:00:00 2001 From: Real Python Bot <42617967+realpython-bot@users.noreply.github.com> Date: Tue, 1 Dec 2026 06:10:59 +0000 Subject: [PATCH] Sync nlp-sentiment-analysis with the maintenance update of Use Sentiment Analysis With Python to Classify Movie Reviews Co-Authored-By: Claude Opus 5.5 --- nlp-sentiment-analysis/README.md | 8 +++++--- nlp-sentiment-analysis/requirements.txt | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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