python package to transform any emoticon to text or its meaning
Project description
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 : ":) :("
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file emoticon-1.0.5.tar.gz
.
File metadata
- Download URL: emoticon-1.0.5.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb8bebff977b2c3dc0898e817349b7a69138c7ee8f971ea30a1673038881020e |
|
MD5 | 3f18ec972bdca912e6c0dbe618f25590 |
|
BLAKE2b-256 | 7875a208f6ffb1e46fe18cc700a367429dca3ab26dde966f77a8c8963b414eb2 |
File details
Details for the file emoticon-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: emoticon-1.0.5-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68dcdeaa968e3703ae5cd17a1665c2da19d5bfc3994cbc4cec8bcd507bc80287 |
|
MD5 | 514e5e3a0802b1246e7cec6d14ef603c |
|
BLAKE2b-256 | fddbecc238ab9dce901f5a2326c20a6cbd8cbf3298327a66855f949540960578 |