Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
Text Emotion
Introduction
Supported Languages
The following languages are supported by the finetuned xlm-roberta model:
- English
- French
- Spanish
- German
- Italian
All other languages are translated to English using the EasyNMT library. If the language is not supported by EasyNMT, then it is not supported.
Installation
You can install emotion using:
$ pip install text-emotion
Usage
from text_emotion import Detector
detector = Detector(emotion_language="fr")
print(detector.detect("Hello, I am so happy!"))
XLM-Roberta
The underlying model is xlm-roberta-large. You can test it at:
https://huggingface.co/ma2za/xlm-roberta-emotion
References
Unsupervised Cross-lingual Representation Learning at Scale (Conneau et al., ACL 2020)
Metadata
Release files for text-emotion 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| text_emotion-0.0.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| text_emotion-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / text_emotion-0.0.3.tar.gz
| Download URL | text_emotion-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a242c311c3a951c5d68718555741eae9c1a36f2e43dd90feafeb0c23e1344eb
|
|
BLAKE2b-256 checksum How to use checksums |
3f511a5b53bb254b7b54b717a8002ab2ad2ee002e72b90fe2b217a7714cbea20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
|
Release files / text_emotion-0.0.3-py3-none-any.whl
| Download URL | text_emotion-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
849e9ba23cf73d368abb7ee2f32a146b2fe4016a84cf1e57e33268d322797ec2
|
|
BLAKE2b-256 checksum How to use checksums |
aebe1756d8fe1b1a8b677a876526e2146578ed82852b530b3515326ab858e8d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
|