Skip to content

Instantly share code, notes, and snippets.

@ines
Last active March 19, 2017 12:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ines/bf5dfd6e40ed646a5554b4eb8d8c530f to your computer and use it in GitHub Desktop.
Save ines/bf5dfd6e40ed646a5554b4eb8d8c530f to your computer and use it in GitHub Desktop.
Use emoji name for spaCy models in v1.7 πŸ¦„
import spacy
nlp = spacy.load('πŸ¦„')
doc = nlp(u'Wow, my model is named πŸ¦„ !')
for word in doc:
print(word.text, word.tag_, word.dep_, word.head.text)
pip install spacy
python -m spacy download en_core_web_sm
python -m spacy link en_core_web_sm πŸ¦„
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment