Skip to main content

PyPI version PyPI pyversions PyPI license

🔎 the most similar 😀s in 🐍3️⃣.

  • This is an application of TopSim, which searches the most similar strings against the query in Python 3.

Installation

This package is available on PyPI. Just use pip3 install -U TopEmoji to install it.

CLI Usage

You can simply use the algorithm on terminal.

Usage:
    topemoji-cli <query> [-k <k>]
  • Each emoji and its description and similarity, are printed to terminal and separated by tab character \t.
topemoji-cli "baby" -k 5
👶	baby	1.0
👼	baby angel	0.666
🐤	baby chick	0.666
🍼	baby bottle	0.6659
🚼	baby symbol	0.6659
  • You can also use emoji as query.
topemoji-cli "😀" -k 5
😀	grinning face	1.0
😆	grinning squinting face	0.9993
😺	grinning cat face	0.9331
😅	grinning face with sweat	0.866
😃	grinning face with big eyes	0.8659

API Usage

Alternatively, you can use the algorithm via API.

from topemoji import search

print(search("baby", k=5)) # Return each similarity and the respective emojis.
# [(1.0, [('👶', 'baby')]),
#  (0.6660006660006661, [('👼', 'baby angel'), ('🐤', 'baby chick')]),
#  (0.665889795238888, [('🍼', 'baby bottle'), ('🚼', 'baby symbol')])]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TopEmoji-0.1.2.tar.gz (24.3 kB view details)

Uploaded Source

File details

Details for the file TopEmoji-0.1.2.tar.gz.

File metadata

  • Download URL: TopEmoji-0.1.2.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TopEmoji-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ec56692bae36e0b04c362004eba0733ff89702d6d72acc186fff5e79fc33009b
MD5 c4e39e3715e0873c77451b6c145b2242
BLAKE2b-256 8177374122a08930901d1c37cc75cf676ceda50400100a71b8f84b57b2894653

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page