cut-sent-thai-0.1.0
توضیحات
tokenize sentence in Thai
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cut-sent-thai-0.1.0 |
| نام | cut-sent-thai |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | sumeth |
| ایمیل نویسنده | author@example.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cut-sent-thai/ |
| مجوز | MIT |
from cut_sent_thai import cut_sent<br/>
tokens = cut_sent("put your string here")<br/><br/>
If you want the raw answer (which space is end of sentence (EOS) and which space is not)<br/>
tokens, raw = cut_sent("put your string here", return_raw=True) <br/>
raw is numpy array. value is 1 if that space position is EOS and 0 if it's not. Length of raw is the same as number of spaces in your text
<br/>
change log version 0.0.8: now needs pytorch as dependency
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| >=2.2.0 | tensorflow |
| >=2.2.0 | pythainlp |
| - | ujson |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cut-sent-thai-0.1.0:
pip install cut-sent-thai-0.1.0.whl
نصب پکیج tar.gz cut-sent-thai-0.1.0:
pip install cut-sent-thai-0.1.0.tar.gz