emoticon-1.0.5
توضیحات
python package to transform any emoticon to text or its meaning
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | emoticon-1.0.5 |
| نام | emoticon |
| نسخه کتابخانه | 1.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ega Febri Dharmawan |
| ایمیل نویسنده | egafebridh@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/emoticon/ |
| مجوز | MIT |
## Emoticon
Emoticon is a Python package to transform or translate emoticon into text or its meaning. Based on list of emotion in wikipedia, i created a library for text mining. This package contain western and eastern emoticon with over 300 emoticon. This package can also translate emoticon into desired language by adding optional argument.
# How to install
```
pip install emoticon
```
# Usage
Following code will show you example how to use this package
From text to emoticon :
```
from emoticon import emoticon
text = ":) :("
emoticon(text)
```
Output : "Smile Sad"
You can also specify the desired language by adding optional argument, for example if you want to return indonesian language, use 'id' as optional parameter.
```
from emoticon import emoticon
text = ":) :("
emoticon(text, 'id')
```
Output : "Senyum Sedih"
if you don't specify, it will return english by default.
From emoticon to text :
```
from emoticon import demoticon
text = "Smile Sad"
demoticon(text)
```
Output : ":) :("
نیازمندی
| مقدار | نام |
|---|---|
| - | NLTK |
| - | mtranslate |
| - | csv |
نحوه نصب
نصب پکیج whl emoticon-1.0.5:
pip install emoticon-1.0.5.whl
نصب پکیج tar.gz emoticon-1.0.5:
pip install emoticon-1.0.5.tar.gz