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
This is collection of Managementsystem programs: Hospital Management, Student Managemen, etc

Contribute in this repository and help other students with their assignment by adding python scripts for various management system programs.

GDSC BVP DET - Navi Mumbai 3 Mar 20, 2022
A feed generator. Currently supports generating RSS feeds from Google, Bing, and Yahoo news.

A feed generator. Currently supports generating RSS feeds from Google, Bing, and Yahoo news.

Josh Cardenzana 0 Dec 13, 2021
1 May 12, 2022
A script to automatically update bot status at GitHub as well as in Telegram channel.

A simple & short repository to show your bot's status in your GitHub README.md file as well as in you channel.

Jainam Oswal 55 Dec 13, 2022
List of short Codeforces problems with a statement of 1000 characters or less. Python script and data files included.

Shortest problems on Codeforces List of Codeforces problems with a short problem statement of 1000 characters or less. Sorted for each rating level. B

32 Dec 24, 2022
Projeto-menu - This project is designed to learn more about control mechanisms in Python programming

Projeto-menu - This project is designed to learn more about control mechanisms in Python programming

Henrik Ricarte 2 Mar 01, 2022
Script em python, utilizando PySimpleGUI, para a geraรงรฃo de arquivo txt a ser importado no sistema de Bilhetagem Eletrรดnica da RioCard, no Estado do Rio de Janeiro.

pedido-vt-riocard Script em python, utilizando PySimpleGUI, para a geraรงรฃo de arquivo txt a ser importado no sistema de Bilhetagem Eletrรดnica da RioCa

Carlos Bruno Gomes 1 Dec 01, 2021
A simple panel with IP, CNPJ, CEP and PLACA queries

Painel mpm Um painel simples com consultas de IP, CNPJ, CEP e PLACA Inรญcio ๐ŸŒ apt update && apt upgrade -y pkg i python git pip install requests Insta

MrDiniz 4 Nov 04, 2022
Virtual webcam that takes real webcam footage and replaces the background in order to have Virtual Backgrounds in MS Teams for Linux where the feature is unimplemented.

Background Remover The Need It's been good long while since Microsoft first released a Teams version for Linux and yet, one of Teams' coolest features

Dylan Turner 80 Dec 20, 2022
A Github Action for sending messages to a Matrix Room.

matrix-commit A Github Action for sending messages to a Matrix Room. Screenshot: Example Usage: # .github/workflows/matrix-commit.yml on: push:

3 Sep 11, 2022
Small scripts to learn about GNOME internals

gnome-hacks This is a collection of APIs that allow programmatic manipulation of the GNOME shell. If you use GNOME (the default graphical shell in Ubu

Alex Nichol 5 Oct 22, 2021
A Lego Mindstorm robot for dealing out cards based on a birds-eye view of a poker table and given ArUco fiducial tags.

A Lego Mindstorm robot for dealing out cards based on a birds-eye view of a poker table and given ArUco fiducial tags.

4 Dec 06, 2021
An open letter in support of Richard Matthew Stallman being reinstated by the Free Software Foundation

An open letter in support of RMS. To sign, click here and name the file username.yaml (replace username with your name) with the following content

2.4k Jan 07, 2023
An upgraded version of extractJS

extractJS_2.0 An enhanced version of extractJS with even more functionality Features Discover JavaScript files directly from the webpage Customizable

Ali 4 Dec 21, 2022
Stop python warnings, no matter what!

SHUTUP - Stop python warnings, no matter what! Sometimes you just can't mute python warnings. Use this library to solve this. Installation pip install

80 Jan 04, 2023
Malicious Document IoC Extractor is a collection of scripts that helps extracting IoCs from various maldoc families.

MDIExtractor Malicious Document IoC Extractor (MDIExtractor) is a collection of scripts that helps extracting IoCs from various maldoc families. Prere

Malwrologist 14 Nov 25, 2022
Change ACLs for QNAP LXD unprivileged container.

qnaplxdunpriv If Advanced Folder Permissions is enabled in QNAP NAS, unprivileged LXD containers won't start. qnaplxdunpriv changes ACLs of some Conta

1 Jan 10, 2022
Use Ghidra Structs in Python

Strudra Welcome to Strudra, a way to craft Ghidra structs in python, using ghidra_bridge. Example First, init Strudra - you can pass in a custom Ghidr

Dominik Maier 27 Nov 24, 2022
Python solution of advent-of-code 2021

Advent of code 2021 Python solutions of Advent of Code 2021 written by Eric Bouteillon Requirements The solutions were developed and tested using Pyth

Eric Bouteillon 3 Oct 25, 2022
SimplePyBLE - Python bindings for SimpleBLE

The ultimate fully-fledged cross-platform Python BLE library, designed for simplicity and ease of use.

Open Bluetooth Toolbox 27 Aug 28, 2022