Domain-specific Natural Language Processing with exciton
Project description
Exciton NLP - A tool for natural language processing
Exciton NLP is designed and maintained by ExcitonX 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
exciton-1.5.2-py3-none-any.whl
(54.7 kB
view details)
File details
Details for the file exciton-1.5.2-py3-none-any.whl
.
File metadata
- Download URL: exciton-1.5.2-py3-none-any.whl
- Upload date:
- Size: 54.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73f53e9ee54d05755e38fb3fd0c9d7ff629cc854fcfdd4d23c24d665c030d17 |
|
MD5 | 23819a7abf81b92337a066304458b42d |
|
BLAKE2b-256 | cda5a0d5f961cb223b1d77de818a871a0d80afb5c6e5a21aaca541549e2222c1 |