Skip to content

Commit

Permalink
update usage documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeelShah18 committed Aug 2, 2021
1 parent 59b1756 commit f93e585
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,15 @@ emot.bulk_emoticons
- mean = list of meaning
- flag = True/False. False means library didn't find anything and True means we find something.

Note: Don't forgot to load **import multiprocessing as mp**


Example
-------

>>> import emot
>>> emot_obj = emot.emot()
>>> import multiprocessing as mp
>>> emot_obj = emot.core.emot()
>>> text = "I love python ☮ 🙂 ❤ :-) :-( :-)))"
>>> emot_obj.emoji(test)
>>> {'value': ['☮', '🙂', '❤'], 'location': [[14, 15], [16, 17], [18, 19]], 'mean': [':peace_symbol:',
Expand All @@ -89,7 +92,8 @@ Example
Running bulk string emoji and emoticons detection. When user has access multiple processing cores.

>>> import emot
>>> emot_obj = emot.emot()
>>> import multiprocessing as mp
>>> emot_obj = emot.core.emot()
>>> bulk_test = ["I love python ☮ 🙂 ❤ :-) :-( :-)))", "I love python
🙂 ❤ :-) :-( :-)))", "I love python ☮ ❤ :-) :-( :-)))", "I love python ☮ 🙂 :-( :-)))"]
>>>
Expand Down

0 comments on commit f93e585

Please sign in to comment.