https://github.com/gptscript-ai/sentiment-analysis
A GPTScript tool for perform sentinment analysis of some given text
https://github.com/gptscript-ai/sentiment-analysis
Last synced: 11 months ago
JSON representation
A GPTScript tool for perform sentinment analysis of some given text
- Host: GitHub
- URL: https://github.com/gptscript-ai/sentiment-analysis
- Owner: gptscript-ai
- License: apache-2.0
- Created: 2024-03-07T16:18:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T15:25:23.000Z (about 2 years ago)
- Last Synced: 2024-04-17T17:50:36.588Z (about 2 years ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sentiment-analysis
A GPTScript tool performing sentiment analysis of some given text or file
## Setup
```
# Clone this repo
git clone https://github.com/gptscript-ai/sentiment-analysis.git
cd sentiment-analysis
# Set up the venv
python3 -m venv .venv
source .venv/bin/activate
# Install the packages
pip3 install -r requirements.txt
```
## Usage
### Get sentiment from a string
```
gptscript sentiments.gpt --content "this is the best movie I have ever watched"
```
### Get sentiment from a text file
```
gptscript sentiments.gpt --file files/tv-not-worth-it.txt
```
### Get sentiment from a pdf file
```
gptscript sentiments.gpt --file files/great-phone.pdf
```