Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions nlp-sentiment-analysis/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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/):
Expand Down
6 changes: 4 additions & 2 deletions nlp-sentiment-analysis/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Loading