Last active
June 24, 2020 11:13
-
-
Save amitness/065d1d2703a57e5a102b5560e5e458a3 to your computer and use it in GitHub Desktop.
DeepMoji usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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