Identify the Emotions in a Given Text , Audio file or Live Speech
Project description
Sentimeter
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.
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 .
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
Built Distribution
Hashes for sentimeter-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe26d5411086b782df0281e9deb5432c19860a722a381a35af2e855315bf1e33 |
|
MD5 | 1d4e0efcd1f273860c70e3c41baa80a1 |
|
BLAKE2b-256 | 0e84c76405d87aede4a567c4338dea05aa3ad6ab8e563f65f2b68f469284a754 |