Tiny Sentiment Analyzer – rule-based & lexicon-based
Project description
sentimini – Sentiment Analyzer
Sentiment analysis package is very lightweight package for analysis sentiment.
Uses rule-based + lexicon approach for quick polarity detection.
Installation
pip install sentimini
Usage
from sentimini import polarity, score
print(polarity("I love this product!")) # positive
print(polarity("This is terrible...")) # negative
print(polarity("It is okay.")) # neutral
print(score("I really love this!"))
# { "polarity": "positive", "score": 0.8 }
Features
✅ Tiny & fast (no ML models)
✅ Works offline
✅ Rule-based with lexicon
✅ Supports negations & intensifiers
✅ Extensible word lists
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 sentimini-1.0.0.tar.gz.
File metadata
- Download URL: sentimini-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12164311ad52c96bf12ae10d14435d61d188d05634a995844eb1884a895f577c
|
|
| MD5 |
056056594fec608b74e388fe69eb816c
|
|
| BLAKE2b-256 |
20a5c3ac3d371d536e1cb820471cb41f80e436e03084c848fe03b53d741e1be4
|
File details
Details for the file sentimini-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sentimini-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61123f4da60374e16d59522adf16169540b7a194f02c6e2c5c770e1dcbf46a2c
|
|
| MD5 |
a5d820295c998d0e0e65f24dff502c75
|
|
| BLAKE2b-256 |
35570cb119d12497068f2dee206f90c560de2002aadf5df50b86ec9cb42b3430
|