Last active
March 19, 2017 12:44
-
-
Save ines/bf5dfd6e40ed646a5554b4eb8d8c530f to your computer and use it in GitHub Desktop.
Use emoji name for spaCy models in v1.7 π¦
This file contains 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 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) |
This file contains 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
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