text-emotion


Nametext-emotion JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/ma2za/text-emotion
SummaryMultilingual Emotion Classification
upload_time2023-06-09 20:16:44
maintainer
docs_urlNone
authorma2za
requires_python>=3.8,<4.0
licenseMIT
keywords text-emotion xlm-roberta text-classification multilingual
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```python
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](https://aclanthology.org/2020.acl-main.747) (Conneau et
al., ACL 2020)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ma2za/text-emotion",
    "name": "text-emotion",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "text-emotion,xlm-roberta,text-classification,multilingual",
    "author": "ma2za",
    "author_email": "mazzapaolo2019@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/3f/51/1a5b53bb254b7b54b717a8002ab2ad2ee002e72b90fe2b217a7714cbea20/text_emotion-0.0.3.tar.gz",
    "platform": null,
    "description": "# Text Emotion\n\n# Introduction\n\n### Supported Languages\n\nThe following languages are supported by the finetuned\nxlm-roberta model:\n\n- English\n- French\n- Spanish\n- German\n- Italian\n\nAll other languages are translated to English\nusing the EasyNMT library. If the language is not\nsupported by EasyNMT, then it is not supported.\n\n# Installation\n\nYou can install emotion using:\n\n    $ pip install text-emotion\n\n# Usage\n\n```python\nfrom text_emotion import Detector\n\ndetector = Detector(emotion_language=\"fr\")\n\nprint(detector.detect(\"Hello, I am so happy!\"))\n```\n\n### XLM-Roberta\n\nThe underlying model is xlm-roberta-large. You can test it at:\n\nhttps://huggingface.co/ma2za/xlm-roberta-emotion\n\n### References\n\n[Unsupervised Cross-lingual Representation Learning at Scale](https://aclanthology.org/2020.acl-main.747) (Conneau et\nal., ACL 2020)",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Multilingual Emotion Classification",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/ma2za/text-emotion",
        "Repository": "https://github.com/ma2za/text-emotion"
    },
    "split_keywords": [
        "text-emotion",
        "xlm-roberta",
        "text-classification",
        "multilingual"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aebe1756d8fe1b1a8b677a876526e2146578ed82852b530b3515326ab858e8d5",
                "md5": "7eb2e15919654ec4f4afbcc2cebd7e7a",
                "sha256": "849e9ba23cf73d368abb7ee2f32a146b2fe4016a84cf1e57e33268d322797ec2"
            },
            "downloads": -1,
            "filename": "text_emotion-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7eb2e15919654ec4f4afbcc2cebd7e7a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 4407,
            "upload_time": "2023-06-09T20:16:42",
            "upload_time_iso_8601": "2023-06-09T20:16:42.285270Z",
            "url": "https://files.pythonhosted.org/packages/ae/be/1756d8fe1b1a8b677a876526e2146578ed82852b530b3515326ab858e8d5/text_emotion-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f511a5b53bb254b7b54b717a8002ab2ad2ee002e72b90fe2b217a7714cbea20",
                "md5": "bd87633f5c1bbe254629f1c662f49102",
                "sha256": "2a242c311c3a951c5d68718555741eae9c1a36f2e43dd90feafeb0c23e1344eb"
            },
            "downloads": -1,
            "filename": "text_emotion-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "bd87633f5c1bbe254629f1c662f49102",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 4383,
            "upload_time": "2023-06-09T20:16:44",
            "upload_time_iso_8601": "2023-06-09T20:16:44.141870Z",
            "url": "https://files.pythonhosted.org/packages/3f/51/1a5b53bb254b7b54b717a8002ab2ad2ee002e72b90fe2b217a7714cbea20/text_emotion-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-09 20:16:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ma2za",
    "github_project": "text-emotion",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "text-emotion"
}
        
Elapsed time: 0.19823s