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 emath@git+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}
}
You might also like...
Geodesic Dome Math

dome Geodesic Dome Math Python dome tool dome.py calculates an icosahedron or 2v geodesic dome and creates 3d printable hubs as OpenSCAD sources. usag

Expression interpreter written in Python

Calc Interpreter An interpreter modeled after a calculator implemented in Python 3. The program currently only supports basic mathematical expressions

Structural basis for solubility in protein expression systems

Structural basis for solubility in protein expression systems Large-scale protein production for biotechnology and biopharmaceutical applications rely

Import some key/value data to Prometheus custom-built Node Exporter in Python
Import some key/value data to Prometheus custom-built Node Exporter in Python

About the app In one particilar project, i had to import some key/value data to Prometheus. So i have decided to create my custom-built Node Exporter

K2HASH Python library - NoSQL Key Value Store(KVS) library
K2HASH Python library - NoSQL Key Value Store(KVS) library

k2hash_python Overview k2hash_python is an official python driver for k2hash. Install Firstly you must install the k2hash shared library: curl -o- htt

CaskDB is a disk-based, embedded, persistent, key-value store based on the Riak's bitcask paper, written in Python.
CaskDB is a disk-based, embedded, persistent, key-value store based on the Riak's bitcask paper, written in Python.

CaskDB - Disk based Log Structured Hash Table Store CaskDB is a disk-based, embedded, persistent, key-value store based on the Riak's bitcask paper, w

This program goes thru reddit, finds the most mentioned tickers and uses Vader SentimentIntensityAnalyzer to calculate the ticker compound value.
This program goes thru reddit, finds the most mentioned tickers and uses Vader SentimentIntensityAnalyzer to calculate the ticker compound value.

This program goes thru reddit, finds the most mentioned tickers and uses Vader SentimentIntensityAnalyzer to calculate the ticker compound value.

Modify the value and status of the records KoboToolbox

Modify the value and status of the records KoboToolbox (Modica el valor y status de los registros de KoboToolbox)

In this project, we are going to display the battery notification and the time left for the battery to drain out using the battery capacity value.
In this project, we are going to display the battery notification and the time left for the battery to drain out using the battery capacity value.

In this project, we are going to display the battery notification and the time left for the battery to drain out using the battery capacity value.

Comments
  • Some emojis are not recognized

    Some emojis are not recognized

    It seems like the king, and groucho marx emojis are not recognized, and interpreted as regular text. Examples below:

    import numpy as np; result = 🀴-emoji2vec["πŸ‘Έ"]+emoji2vec["πŸ‘©"] ^ SyntaxError: invalid character in identifier

    import numpy as np; result = emoji2vec["😎"]-πŸ₯Έ ^ SyntaxError: invalid character in identifier

    opened by zachary-mcdargh 1
Owner
Andrew White
Andrew White
A python package that computes an optimal motion plan for approaching a red light

redlight_approach redlight_approach is a Python package that computes an optimal motion plan during traffic light approach. RLA_demo.mov Given the par

Jonathan Roy 4 Oct 27, 2022
A python script to make leaderboards using a CSV with the runners name, IDs and Flag Emojis

SrcLbMaker A python script to make speedrun.com global leaderboards. Installation You need python 3.6 or higher. First, go to the folder where you wan

null 2 Jul 25, 2022
πŸš€ emojimash πŸš€ is a programming language with ALL THE EMOJI

?? emojimash ?? is a programming language with ALL THE EMOJI

Python Whiz 256 1 Oct 26, 2021
This program tries to book a tennis court slot in either Southwark Park or Tanner Street Park in Southwark, London.

Book tennis courts in London This program tries to book a tennis court slot in either Southwark Park or Tanner Street Park in Southwark, London. Note:

Daniele 1 Jul 25, 2022
combs is a package used to generate all possible combinations of a given length k on a given set.

The package combs is a package used to generate all possible combinations of a given length k on a given set. The set is given as a list, and k must b

null 1 Dec 24, 2021
Simple and easy to use python API for the COVID registration booking system of the math department @ unipd (torre archimede)

Simple and easy to use python API for the COVID registration booking system of the math department @ unipd (torre archimede). This API creates an interface with the official browser, with more useful functionalities.

Guglielmo Camporese 4 Dec 24, 2021
Gives you more advanced math in python.

AdvancedPythonMath Gives you more advanced math in python. Functions .simplex(args: {number}) .circ(args: {raidus}) .pytha(args: {leg_a + leg_2}) .slo

Voidy Devleoper 1 Dec 25, 2021
a simple proof system I made to learn math without any mistakes

math_up a simple proof system I made to learn math without any mistakes 0. Short Introduction test yourself, enjoy your math! math_up is an NBG-based,

μ–‘ν˜„μš° 5 Jun 4, 2021
It's a repo for Cramer's rule, which is some math crap or something idk

It's a repo for Cramer's rule, which is some math crap or something idk (just a joke, it's not crap; don't take that seriously, math teachers)

Module64 0 Aug 31, 2022
Script to calculate delegator epoch returns for all pillars

znn_delegator_calculator Script to calculate estimated delegator epoch returns for all Pillars, so you can delegate to the best one. You can find me o

null 2 Dec 3, 2021