What is emotion?
Emotion is a biological state associated with the nervous system brought on by neurophysiological changes variously associated with thoughts, feelings, behavioural responses, and a degree of pleasure or displeasure. (Source: Wikipedia)
Human being can easily identify the emotions from text and experience it. But what about the machines, are they able to identify the emotions from text?
text2emotion is the python package which will help you to extract the emotions from the content.
- Processes any textual message and recognize the emotions embedded in it.
- Compatible with 5 different emotion categories as Happy, Angry, Sad, Surprise and Fear.
Features
1. Text Pre-processing
At first we have the major goal to perform data cleaning and make the content suitable for emotion analysis.
- Remove the unwanted textual part from the message.
- Perform the natural language processing techniques.
- Bring out the well pre-processed text from the text pre-processing.
2. Emotion Investigation
Detect emotion from every word that we got from pre-processed text and take a count of it for further analytical process.
- Find the appropriate words that express emotions or feelings.
- Check the emotion category of each word.
- Store the count of emotions relevant to the words found.
3. Emotion Analysis
After emotion investigation, there is the time of getting the significant output for the textual message we input earlier.
- The output will be in the form of dictionary.
- There will be keys as emotion categories and values as emotion score.
- Higher the score of a particular emotion category, we can conclude that the message belongs to that category.
How to use?
Check Demo on Colab
App Deployment
Here's the code implementation with Streamlit App for the users.
- Enter the text.
- Hit the submit button.
- Tada!! Get the output in visual form.
Check Demo of App
Let's experience the library, test your multiple use cases on web app and check whether the library performs as per your expectations.
Metadata
Release files for text2emotion 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 |
|---|---|---|---|---|
| text2emotion-0.0.5.tar.gz | 59.2 kB | Without provenance | Details for text2emotion-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| text2emotion-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for text2emotion-0.0.5-py3-none-any.whl |
Total release size: 117.0 kB
Release files / text2emotion-0.0.5.tar.gz
| Download URL | text2emotion-0.0.5.tar.gz |
|---|---|
| Size | 59.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7868ff1aee3362491c9ca094ae3d975678693aaa5e9144d1ad0eb64dd8f32e8
|
|
BLAKE2b-256 checksum How to use checksums |
b047c63fd37b02ebfdfaf7aa365d40b2ac357814a820b692dc1a652a6cbc8964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0
|
Release files / text2emotion-0.0.5-py3-none-any.whl
| Download URL | text2emotion-0.0.5-py3-none-any.whl |
|---|---|
| Size | 57.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3724a0a610f3a35ada599de0b9a1deff5b8902fb55078596236c31505ee75421
|
|
BLAKE2b-256 checksum How to use checksums |
fe31b190e37c1396ca68ab1b5c8ea1a23f2f7848df532ad69133e94853120aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0
|
Security for text2emotion 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.