Skip to content

Instantly share code, notes, and snippets.

@amitness
Last active June 24, 2020 11:13
Show Gist options
  • Save amitness/065d1d2703a57e5a102b5560e5e458a3 to your computer and use it in GitHub Desktop.
Save amitness/065d1d2703a57e5a102b5560e5e458a3 to your computer and use it in GitHub Desktop.
DeepMoji usage
import pandas as pd
from deepmoji import DeepMoji
# Instantiate the Emoji Model
emoji_model = DeepMoji()
# Read a file containing user opinions
df = pd.read_csv('https://bit.ly/2VbfNiM')
# Predict the emojis for the open-ended text
emojis = emoji_model.predict(df['text'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment