emoji-math computes the given python expression and returns either the value or the nearest 5 emojis as measured by cosine similarity.

Overview

Emoji Math

Open In Colab

Because why not? I put a minimal effort into this project, so please have low expectations.

pip install [email protected]+git://github.com/whitead/emoji-math.git

Usage

emoji-math computes the given python expression and returns either the value or the nearest 5 emojis as measured by cosine similarity.

>emoji-math ๐Ÿ‘‘ - ๐Ÿšน + ๐Ÿšบ
Best Matches:
  ๐Ÿ‘‘-๐Ÿšน+๐Ÿšบ = ๐Ÿ‘ธ
  ๐Ÿ‘‘-๐Ÿšน+๐Ÿšบ = ๐Ÿ‘‘
  ๐Ÿ‘‘-๐Ÿšน+๐Ÿšบ = ๐Ÿคด
>emoji-math ๐Ÿšน @ ๐Ÿšบ
๐Ÿšน @ ๐Ÿšบ = 0.32784234338655205
>emoji-math np.sin(๐Ÿฐ)
Best Matches:
  np.sin(๐Ÿฐ) = ๐Ÿฏ
  np.sin(๐Ÿฐ) = ๐Ÿฐ
  np.sin(๐Ÿฐ) = ๐Ÿ‘ธ
>emoji-math ๐Ÿšน + ๐Ÿšบ
Best Matches:
  ๐Ÿšน+๐Ÿšบ = ๐Ÿšป
  ๐Ÿšน+๐Ÿšบ = ๐Ÿšบ
  ๐Ÿšน+๐Ÿšบ = ๐Ÿšน

Options

You can choose between using the Euclidean distance or cosine similarity for reporting results. Cosine works better for multiplication/division because it only cares about direction. Default is Euclidean.

>emoji-math --cosine ๐Ÿšน + ๐Ÿšบ
Best Matches:
  ๐Ÿšน+๐Ÿšบ = ๐Ÿ‘š
  ๐Ÿšน+๐Ÿšบ = ๐Ÿšบ
  ๐Ÿšน+๐Ÿšบ = ๐Ÿšน

Google Colab

Start using emoji math with Open In Colab

Credit

Made by @andrewwhite01

Vector embeddings from emoji2vec as described in

@misc{eisner2016emoji2vec,
      title={emoji2vec: Learning Emoji Representations from their Description},
      author={Ben Eisner and Tim Rocktรคschel and Isabelle Augenstein and Matko Boลกnjak and Sebastian Riedel},
      year={2016},
      eprint={1609.08359},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
Owner
Andrew White
Andrew White
้€š่ฟ‡็ฎ€ๅ•็š„ๅท็งฏ็ฅž็ป็ฝ‘็ปœ็›ดๆŽฅ้ข„ๆต‹ๅ‡บ้ชŒ่ฏ็ ๅ›พ็‰‡ไธญๆป‘ๅ—็š„ไฝ็ฝฎ

ไฝฟ็”จ่ฏดๆ˜Ž 1. ๅœจๆœฌๅœฐๆต‹่ฏ• ่ฟ่กŒpython3 prdict_one.pyๅณๅฏ๏ผŒ้ป˜่ฎค้œ€่ฆ้ข„ๆต‹็š„ๅ›พ็‰‡่ทฏๅพ„ไฝไบŽtestImgๆ–‡ไปถๅคนไธ‹็š„test1.png ่ฟ่กŒpython3 predict_folder.py้ข„ๆต‹testImgไธ‹็š„ๆ‰€ๆœ‰ๅ›พ็‰‡ 2. ้ƒจ็ฝฒๅˆฐๆœๅŠกๅ™จ ่ฟ่กŒpython3 run_a_server

12 Mar 08, 2022
Transform a Google Drive server into a VFX pipeline ready server

Google Drive VFX Server VFX Pipeline About The Project Quick tutorial to setup a Google Drive Server for multiple machines access, and VFX Pipeline on

Valentin Beaumont 17 Jun 27, 2022
Alerts for Western Australian Covid-19 exposure locations via email and Slack

WA Covid Mailer Sends alerts from Healthy WA's Covid19 Exposure Locations via email and slack. Setup Edit the configuration items in wacovidmailer.py

13 Mar 29, 2022
Library to emulate the Sneakers movie effect

py-sneakers Port to python of the libnms C library To recreate the famous data decryption effect shown in the 1992 film Sneakers. Install pip install

Nicolas Rebagliati 11 Aug 27, 2021
script buat mengcrack

setan script buat mengcrack cara install $ pkg install upgrade && pkg update $ pkg install python $ pkg install git $ pip install requests $ pip insta

1 Nov 03, 2021
MoBioTools A simple yet versatile toolkit to automatically setup quantum mechanics/molecular mechanics

A simple yet versatile toolkit to setup quantum mechanical/molecular mechanical (QM/MM) calculations from molecular dynamics trajectories.

MoBioChem 17 Nov 27, 2022
Application launcher and environment management

Application launcher and environment management for 21st century games and digital post-production, built with bleeding-rez and Qt.py News Date Releas

10 Nov 03, 2022
Xbps-install wrapper written in Python that doesn't care about case sensitiveness and package versions

xbi Xbps-install wrapper written in Python that doesn't care about case sensitiveness and package versions. Description This Python script can be easi

Emanuele Sabato 5 Apr 11, 2022
A type based dependency injection framework for Python 3.9+

Alluka A type based dependency injection framework for Python 3.9+. Installation You can install Alluka from PyPI using the following command in any P

Lucina 16 Dec 15, 2022
Imitate Moulinette written in Python

Imitate Moulinette written in Python

Pumidol Leelerdsakulvong 2 Jul 26, 2022
A way to write regex with objects instead of strings.

Py Idiomatic Regex (AKA iregex) Documentation Available Here An easier way to write regex in Python using OOP instead of strings. Makes the code much

Ryan Peach 18 Nov 15, 2021
An assistant to guess your pip dependencies from your code, without using a requirements file.

Pip Sala Bim is an assistant to guess your pip dependencies from your code, without using a requirements file. Pip Sala Bim will tell you which packag

Collage Labs 15 Nov 19, 2022
SimilarWeb for Team ACT v.0.0.1

SimilarWeb for Team ACT v.0.0.1 This module has been built to provide a better environment specifically for Similarweb in Team ACT. This module itself

Sunkyeong Lee 0 Dec 29, 2021
A tool to help calculate how to split conveyors in Satisfactory into specific ratios.

Satisfactory Splitter Calculator A tool to help calculate how to split conveyors in Satisfactory into specific ratios. Dependencies Python 3.9 PyYAML

RobotiCat 5 Dec 22, 2022
CBO uses its Capital Tax model (CBO-CapTax) to estimate the effects of federal taxes on capital income from new investment

CBOโ€™s CapTax Model CBO uses its Capital Tax model (CBO-CapTax) to estimate the effects of federal taxes on capital income from new investment. Specifi

Congressional Budget Office 7 Dec 16, 2022
Python screenshot library, replacement for the Pillow ImageGrab module on Linux.

tldr: Use Pillow The pyscreenshot module is obsolete in most cases. It was created because PIL ImageGrab module worked on Windows only, but now Linux

455 Dec 24, 2022
Simple Calculator Mobile Apps

Simple Calculator Mobile Apps Screenshoot If you want to try it please click the link below to download, this application is 100% safe no virus. link

0 Sep 24, 2022
Customisable coding font with alternates, ligatures and contextual positioning

Guide Ligature Support Links Log License Guide Live Preview + Download larsenwork.com/monoid Install Quit your editor/program. Unzip and open the fold

Andreas Larsen 7.6k Dec 30, 2022
Just RESTing

petnica-api-workshop Just RESTing Setup Using pipenv You can setup this project with pipenv if you want isolated libraries. After you've installed pip

Aleksa Teลกiฤ‡ 1 Oct 23, 2021
Integer sets where all subsets have unique sums

Evil Sums Generation of sets of numbers where all constituents are recoverable from a partial sum.

Charlotte 5 Sep 24, 2022