fasttext-language-detection-0.4
توضیحات
Language detection wrapper with fasttext
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fasttext-language-detection-0.4 |
| نام | fasttext-language-detection |
| نسخه کتابخانه | 0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alberto Ezpondaburu |
| ایمیل نویسنده | aezpondaburu@lang.ai |
| آدرس صفحه اصلی | https://github.com/lang-ai/fasttext-language-detection |
| آدرس اینترنتی | https://pypi.org/project/fasttext-language-detection/ |
| مجوز | MIT |
# fasttext-language-detection
## Install
```shell
pip install fasttext-language-detection
```
## Usage
```python
from langdetection.detector import LanguageDetector
language_detector = LanguageDetector(low_memory=True)
text = 'Hello world!'
detection = language_detector.detect(text)
print(detection)
>> {'lang': 'en', 'prob': 0.22845280170440674}
```
## Tests
```shell
make run_tests
```
## List of supported languages
```
af als am an ar arz as ast av az azb ba bar bcl be bg bh bn bo bpy br bs bxr ca cbk ce ceb ckb co cs cv cy da de diq dsb dty dv el eml en eo es et eu fa fi fr frr fy ga gd gl gn gom gu gv he hi hif hr hsb ht hu hy ia id ie ilo io is it ja jbo jv ka kk km kn ko krc ku kv kw ky la lb lez li lmo lo lrc lt lv mai mg mhr min mk ml mn mr mrj ms mt mwl my myv mzn nah nap nds ne new nl nn no oc or os pa pam pfl pl pms pnb ps pt qu rm ro ru rue sa sah sc scn sco sd sh si sk sl so sq sr su sv sw ta te tg th tk tl tr tt tyv ug uk ur uz vec vep vi vls vo wa war wuu xal xmf yi yo yue zh
```
## License
The [fastetext models](https://fasttext.cc/docs/en/language-identification.html) are distributed under the [Creative Commons Attribution-Share-Alike License 3.0](https://fasttext.cc/docs/en/language-identification.html#:~:text=Creative%20Commons%20Attribution%2DShare%2DAlike%20License%203.0).
## References
[1] A. Joulin, E. Grave, P. Bojanowski, T. Mikolov, Bag of Tricks for Efficient Text Classification
```
@article{joulin2016bag,
title={Bag of Tricks for Efficient Text Classification},
author={Joulin, Armand and Grave, Edouard and Bojanowski, Piotr and Mikolov, Tomas},
journal={arXiv preprint arXiv:1607.01759},
year={2016}
}
```
[2] A. Joulin, E. Grave, P. Bojanowski, M. Douze, H. Jégou, T. Mikolov, FastText.zip: Compressing text classification models
```
@article{joulin2016fasttext,
title={FastText.zip: Compressing text classification models},
author={Joulin, Armand and Grave, Edouard and Bojanowski, Piotr and Douze, Matthijs and J{\'e}gou, H{\'e}rve and Mikolov, Tomas},
journal={arXiv preprint arXiv:1612.03651},
year={2016}
}
```
نحوه نصب
نصب پکیج whl fasttext-language-detection-0.4:
pip install fasttext-language-detection-0.4.whl
نصب پکیج tar.gz fasttext-language-detection-0.4:
pip install fasttext-language-detection-0.4.tar.gz