exciton


Nameexciton JSON
Version 2.6.2 PyPI version JSON
download
home_pagehttps://excitonresearch.com
SummaryNatural Language Processing by the Exciton Research
upload_time2024-05-04 13:50:47
maintainerNone
docs_urlNone
authorThe Exciton Research Team
requires_python>=3.8
licenseNone
keywords nlp deep learning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Exciton NLP - A tool for natural language processing

Exciton NLP is designed and maintained by the Exciton Research for different NLP tasks, including multilingual classification, NER, translation, etc.

## Installation
Use ``pip`` to install exciton. Run:

```
pip install -U exciton
```

## Usage

```

from exciton.nlp.translation import M2M100

model = M2M100(model="m2m100_1.2b", device="cuda")
source = [
    {"id": 1, "source": "I love you!", "source_lang": "en", "target_lang": "zh"},
    {"id": 2, "source": "我爱你!", "source_lang": "zh", "target_lang": "en"}
]
results = model.predict(source)

```


            

Raw data

            {
    "_id": null,
    "home_page": "https://excitonresearch.com",
    "name": "exciton",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "NLP Deep Learning",
    "author": "The Exciton Research Team",
    "author_email": "excitonresearch@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "# Exciton NLP - A tool for natural language processing\n\nExciton NLP is designed and maintained by the Exciton Research for different NLP tasks, including multilingual classification, NER, translation, etc.\n\n## Installation\nUse ``pip`` to install exciton. Run:\n\n```\npip install -U exciton\n```\n\n## Usage\n\n```\n\nfrom exciton.nlp.translation import M2M100\n\nmodel = M2M100(model=\"m2m100_1.2b\", device=\"cuda\")\nsource = [\n    {\"id\": 1, \"source\": \"I love you!\", \"source_lang\": \"en\", \"target_lang\": \"zh\"},\n    {\"id\": 2, \"source\": \"\u6211\u7231\u4f60\uff01\", \"source_lang\": \"zh\", \"target_lang\": \"en\"}\n]\nresults = model.predict(source)\n\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Natural Language Processing by the Exciton Research",
    "version": "2.6.2",
    "project_urls": {
        "Homepage": "https://excitonresearch.com"
    },
    "split_keywords": [
        "nlp",
        "deep",
        "learning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9851e781b937a6a911df26b2766f942dec0fb4e1b137ac9403bcd0e2828569c1",
                "md5": "af2320c07d3ae4fcacec7a5feb043c5a",
                "sha256": "c7232d15177d1bde10e577a12fc3b75bd15ff7fdb4236990d432101a6daa840a"
            },
            "downloads": -1,
            "filename": "exciton-2.6.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "af2320c07d3ae4fcacec7a5feb043c5a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 39009,
            "upload_time": "2024-05-04T13:50:47",
            "upload_time_iso_8601": "2024-05-04T13:50:47.682132Z",
            "url": "https://files.pythonhosted.org/packages/98/51/e781b937a6a911df26b2766f942dec0fb4e1b137ac9403bcd0e2828569c1/exciton-2.6.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-04 13:50:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "exciton"
}
        
Elapsed time: 0.25973s