Sentimeter
The module is published in pypi (https://pypi.org/project/sentimeter/) . you can install it via
pip install sentimeter
Introduction
Sentimeter is all about identifiying the sentiments from a source . The source can be a text / audio . Below are some of the built in modules shipping along with the package .
Audio Module
Process the Emotions in a given audio file. Currently it supports only wav file . In future we will add more formats
Live Speech
Process the Emotions in a live speech
Telegram Mode
Sentimeter has a Telegram Bot, it can process the emotions in a Telegram chat
Text File
Process a text file and identifies the emotions
Youtube Video
Under Development
Incase if you would like to create own modules, you can do it by extending the BaseSource class like below
class OwnSentimeterSource(BaseSource):
def __init__(self, engine) -> None:
super().__init__(engine)
pass
def run(self):
# The text is is the input to the engine
self.engine.process(text)
return True
def on_event(self, results):
# This overridden function will get you the results(map of emotions)
print(results)
We can use multiple backends as well with this engine. I have created an experimental ChatGPT backend . But by default it uses a built in model to identify the emotions.
Class Diagram
Package Diagram
Usage
There are applications developed using sentimeter. Please refer apps folder in https://github.com/karthagokul/sentimeter
Todo
- Documentation
- Google Hangout Connector
Setup
Create a Virtual env
py -m venv virtual-env
.\virtual-env\Scripts\activate
Install All Dependencies
pip3 install .
Metadata
Release files for sentimeter 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sentimeter-0.0.5.tar.gz | 9.3 kB | Without provenance | Details for sentimeter-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentimeter-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for sentimeter-0.0.5-py3-none-any.whl |
Total release size: 18.0 kB
Release files / sentimeter-0.0.5.tar.gz
| Download URL | sentimeter-0.0.5.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e62e217dde7151c2d5e0f743b06a604e0764d2f6aca0a750182e8d5a13d44ba8
|
|
BLAKE2b-256 checksum How to use checksums |
f419b4638cf81aaa856daf3600444c0621de290c741618298219da3ed2549807
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / sentimeter-0.0.5-py3-none-any.whl
| Download URL | sentimeter-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaeae3986be35e4d6f8ab5d01bbee3a4e12e02671114f88c040a694fe19cdf3e
|
|
BLAKE2b-256 checksum How to use checksums |
7e658f21363170b237abc7308abd4ab17de848daf5fe785b4b1c534fc1b0da70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for sentimeter 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.