Demos Sentiment analysis using comprehend batch, document and asynchronous mode
- Python 3.5+, https://www.python.org/downloads/release/python-350/
- Install pip, see https://pip.pypa.io/en/stable/installing/
- Install dependencies for this project
pip install -r source/requirements.txt
export PYTHONPATH=./source
python source/demo.py single "This is great! and amazing"
export PYTHONPATH=./source
python source/demo.py batch tests/data/sample_reviews.csv --outfile /tmp/sentiment.csv --max-threads 3