No project description provided
Project description
Sentiment Analyzer
A simple sentiment analysis tool that assigns a sentiment score to a given text based on predefined positive and negative words.
Features
- Uses a predefined list of positive and negative words.
- Assigns a sentiment score between -1 (negative) and 1 (positive).
- Lightweight and easy to use.
Installation
You can install the package using pip:
pip install https://github.com/rupayan-23/NLP_sentiment.git
Usage
from sentiment_analyzer import Sentiment
text = "This is an amazing and fantastic experience!"
score = Sentiment(text)
print("Sentiment Score:", score)
Sentiment Scoring
- 1.0 → Strongly positive sentiment
- 0.5 to 0.9 → Moderately positive sentiment
- 0.0 → Neutral
- -0.5 to -0.9 → Moderately negative sentiment
- -1.0 → Strongly negative sentiment
Requirements
- Python 3.6+
- NumPy
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NLP_sentiment-2.0.0.tar.gz.
File metadata
- Download URL: NLP_sentiment-2.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
618c90e14081143130c20f9f3d1e3f7e1548dfc1e298d13b5127e816a4d3b3ae
|
|
| MD5 |
4468ca13ca6a950f6795eba00a52f38c
|
|
| BLAKE2b-256 |
7f7d45114532cb245c674f1aaa73f17f6767090fff4a1bd72111518b4cd1a243
|
File details
Details for the file NLP_sentiment-2.0.0-py3-none-any.whl.
File metadata
- Download URL: NLP_sentiment-2.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
007fdf93c678e4ac644ac422e5f787841db1295563c87370317d6448e11f0b9c
|
|
| MD5 |
7ce9d18e59a4d46dc4a64bc6d22f7c8a
|
|
| BLAKE2b-256 |
fcc2f8d6d984752417d8b177f5904f33cf12951d77e1dec92bf64b1f8a78e30a
|