# 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.9.3",
"project_urls": {
"Homepage": "https://excitonresearch.com"
},
"split_keywords": [
"nlp",
"deep",
"learning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dc6fb10bbfbba838ba44e1d2d038ac749118d469aa01040de530bb1422126145",
"md5": "bc5aed6390b27c0c49b4ee75d1f62dc6",
"sha256": "ea1138a6df7d96272970b5060193dba6a7409f6ac1e4301d1382b97e17d991ec"
},
"downloads": -1,
"filename": "exciton-2.9.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bc5aed6390b27c0c49b4ee75d1f62dc6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 50333,
"upload_time": "2024-07-11T23:02:21",
"upload_time_iso_8601": "2024-07-11T23:02:21.254474Z",
"url": "https://files.pythonhosted.org/packages/dc/6f/b10bbfbba838ba44e1d2d038ac749118d469aa01040de530bb1422126145/exciton-2.9.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-11 23:02:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "exciton"
}