Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentimini-1.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentimini-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for sentimini-1.0.0.tar.gz
Algorithm Hash digest
SHA256 12164311ad52c96bf12ae10d14435d61d188d05634a995844eb1884a895f577c
MD5 056056594fec608b74e388fe69eb816c
BLAKE2b-256 20a5c3ac3d371d536e1cb820471cb41f80e436e03084c848fe03b53d741e1be4

See more details on using hashes here.

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

Hashes for sentimini-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61123f4da60374e16d59522adf16169540b7a194f02c6e2c5c770e1dcbf46a2c
MD5 a5d820295c998d0e0e65f24dff502c75
BLAKE2b-256 35570cb119d12497068f2dee206f90c560de2002aadf5df50b86ec9cb42b3430

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page