Skip to main content

Joji

Joji convert a text to corresponding emoji if emoji is available

How it Works ?

1. There is a json file with emoji names as keys and corresponding unicode of emojis as values.
2. There is a method that check if the input word is in the key space of the json. If yes then will return corresponding value.
3. There is a method that do similarity matching of word against the keys in json and return the emoji unicode corresponding to the key with maximum similarity value.
4. There is a threshold to avoid False Positives.
5. If both checking and matching don't return anything, just return the word - means there is no emoji for that word. 

Libraries used

How to configure

python setup.py install 

Install

Joji is now available in pip

pip install joji

How to Run

>> from joji.jojify import Jojify
>> print(Jojify.predict("dracula"))
('🧛', 'U+1F9DB', 0.5509367532053601)
>> print(Jojify.predict("ganja"))
('🌿', 'U+1F33F', 0.2860632682239092)
>> print(Jojify.predict("ironman"))
('🦸', 'U+1F9B8', 0.40435058484084363)
>> print(Jojify.predict("good night"))
('👌🌃', ['U+1F44C', 'U+1F303'], 0.7178929764409834)

How to Test

pytest tests

Future work

  1. Maybe add vaaku2vec and create malayalam text to emoji

Metadata

Release files for joji 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for joji 1.2.0
File Interpreter ABI Platform
joji-1.2.0-py3-none-any.whl Python 3 none any Details

Release files / joji-1.2.0-py3-none-any.whl

Download URL joji-1.2.0-py3-none-any.whl
Size 45.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5f20cec7d8b027086be3343909ac93ec213b070a6164a65fd07a9bc4edf18007
BLAKE2b-256 checksum
How to use checksums
559527de3376f32bd2b6e10b68c26f3861f73548769cec70d2cd627b44d032cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.9

1 release file

1.1.8

1 release file

1.0.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page