30 lines
743 B
Markdown
30 lines
743 B
Markdown
|
# 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:
|
||
|
|
||
|
```bash
|
||
|
pip install -e .
|
||
|
```
|
||
|
|
||
|
This will install the package in the current environment in editable mode.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```python
|
||
|
>>> 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)
|
||
|
```
|
||
|
![](docs/test.png)
|
||
|
|
||
|
## License
|
||
|
|
||
|
This project is licensed under the terms of the MIT license. See [LICENSE](LICENSE) for more details.
|
||
|
|
||
|
|