{ "info": { "author": "Chuancong Gao", "author_email": "chuancong@gmail.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "[![PyPI version](https://img.shields.io/pypi/v/TopEmoji.svg)](https://pypi.python.org/pypi/TopEmoji/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/TopEmoji.svg)](https://pypi.python.org/pypi/TopEmoji/)\n[![PyPI license](https://img.shields.io/pypi/l/TopEmoji.svg)](https://pypi.python.org/pypi/TopEmoji/)\n\n\ud83d\udd0e the most similar \ud83d\ude00s in \ud83d\udc0d3\ufe0f\u20e3.\n\n- This is an application of [TopSim](https://github.com/chuanconggao/TopSim), which searches the most similar strings against the query in Python 3.\n\n# Installation\n\nThis package is available on PyPI. Just use `pip3 install -U TopEmoji` to install it.\n\n# CLI Usage\n\nYou can simply use the algorithm on terminal.\n\n``` text\nUsage:\n topemoji-cli [-k ]\n```\n\n- Each emoji and its description and similarity, are printed to terminal and separated by tab character `\\t`.\n\n``` bash\ntopemoji-cli \"baby\" -k 5\n```\n\n``` text\n\ud83d\udc76\tbaby\t1.0\n\ud83d\udc7c\tbaby angel\t0.666\n\ud83d\udc24\tbaby chick\t0.666\n\ud83c\udf7c\tbaby bottle\t0.6659\n\ud83d\udebc\tbaby symbol\t0.6659\n```\n\n- You can also use emoji as query.\n\n``` bash\ntopemoji-cli \"\ud83d\ude00\" -k 5\n```\n\n``` text\n\ud83d\ude00\tgrinning face\t1.0\n\ud83d\ude06\tgrinning squinting face\t0.9993\n\ud83d\ude3a\tgrinning cat face\t0.9331\n\ud83d\ude05\tgrinning face with sweat\t0.866\n\ud83d\ude03\tgrinning face with big eyes\t0.8659\n```\n\n# API Usage\n\nAlternatively, you can use the algorithm via API.\n\n``` python\nfrom topemoji import search\n\nprint(search(\"baby\", k=5)) # Return each similarity and the respective emojis.\n# [(1.0, [('\ud83d\udc76', 'baby')]),\n# (0.6660006660006661, [('\ud83d\udc7c', 'baby angel'), ('\ud83d\udc24', 'baby chick')]),\n# (0.665889795238888, [('\ud83c\udf7c', 'baby bottle'), ('\ud83d\udebc', 'baby symbol')])]\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/chuanconggao/TopEmoji/tarball/0.1.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chuanconggao/TopEmoji", "keywords": "similarity-search,string-search,emoji", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "TopEmoji", "package_url": "https://pypi.org/project/TopEmoji/", "platform": "", "project_url": "https://pypi.org/project/TopEmoji/", "project_urls": { "Download": "https://github.com/chuanconggao/TopEmoji/tarball/0.1.2", "Homepage": "https://github.com/chuanconggao/TopEmoji" }, "release_url": "https://pypi.org/project/TopEmoji/0.1.2/", "requires_dist": null, "requires_python": ">= 3", "summary": "\ud83d\udd0e the most similar \ud83d\ude00s.", "version": "0.1.2" }, "last_serial": 3838158, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "c4e39e3715e0873c77451b6c145b2242", "sha256": "ec56692bae36e0b04c362004eba0733ff89702d6d72acc186fff5e79fc33009b" }, "downloads": -1, "filename": "TopEmoji-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c4e39e3715e0873c77451b6c145b2242", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3", "size": 24312, "upload_time": "2018-05-06T06:16:29", "url": "https://files.pythonhosted.org/packages/81/77/374122a08930901d1c37cc75cf676ceda50400100a71b8f84b57b2894653/TopEmoji-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c4e39e3715e0873c77451b6c145b2242", "sha256": "ec56692bae36e0b04c362004eba0733ff89702d6d72acc186fff5e79fc33009b" }, "downloads": -1, "filename": "TopEmoji-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c4e39e3715e0873c77451b6c145b2242", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3", "size": 24312, "upload_time": "2018-05-06T06:16:29", "url": "https://files.pythonhosted.org/packages/81/77/374122a08930901d1c37cc75cf676ceda50400100a71b8f84b57b2894653/TopEmoji-0.1.2.tar.gz" } ] }