exciton-1.7.0
توضیحات
Domain-specific Natural Language Processing with exciton
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | exciton-1.7.0 |
| نام | exciton |
| نسخه کتابخانه | 1.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | The ExcitonX Team |
| ایمیل نویسنده | excitonx@gmail.com |
| آدرس صفحه اصلی | https://exciton.com |
| آدرس اینترنتی | https://pypi.org/project/exciton/ |
| مجوز | - |
# 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)
```
نیازمندی
| مقدار | نام |
|---|---|
| ==3.11.0 | ctranslate2 |
| ==1.24.2 | numpy |
| ==0.3.4 | pysbd |
| ==1.2.2 | scikit-learn |
| ==1.4 | sentence-splitter |
| ==0.1.98 | sentencepiece |
| ==3.5.2 | spacy |
| ==2.0.0 | torch |
| ==4.65.0 | tqdm |
| ==4.28.1 | transformers |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl exciton-1.7.0:
pip install exciton-1.7.0.whl
نصب پکیج tar.gz exciton-1.7.0:
pip install exciton-1.7.0.tar.gz