A toolkit of sentiment analysis with aspect words.
Go to file
Kunologist 3fcf73fcad Add a new method: Naive CNN 2023-11-17 07:01:58 +00:00
docs First commit to SAWAW 2023-11-13 21:37:32 +00:00
methods Add a new method: Naive CNN 2023-11-17 07:01:58 +00:00
sawaw First commit to SAWAW 2023-11-13 21:37:32 +00:00
scripts Add a new method: Naive CNN 2023-11-17 07:01:58 +00:00
tests First commit to SAWAW 2023-11-13 21:37:32 +00:00
.gitignore First commit to SAWAW 2023-11-13 21:37:32 +00:00
LICENSE First commit to SAWAW 2023-11-13 21:37:32 +00:00
README.md First commit to SAWAW 2023-11-13 21:37:32 +00:00
finish.sh First commit to SAWAW 2023-11-13 21:37:32 +00:00
pyproject.toml Add a new method: Naive CNN 2023-11-17 07:01:58 +00:00

README.md

SAWAW: Sentiment Analysis with Aspect Words

This package provides a toolkit for analyzing sentiment of aspect words in a sentence.

Installation

After cloning the repository, install the package with the following command:

pip install -e .

This will install the package in the current environment in editable mode.

Usage

>>> from sawaw import SAWAWEntry, analyze_gpt3_5
>>> entry = SAWAWEntry('I love the new iPhone 30 Pro Max Extra Double. The camera is amazing, but the battery life is not great.', ['camera', 'battery'])
>>> analyze_gpt3_5(entry)
>>> print(entry)

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.