Created
January 28, 2019 19:31
-
-
Save kylegallatin/5290ac6810ba1948a6c574b45a56a5dc to your computer and use it in GitHub Desktop.
App
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('en_core_web_sm') | |
text = raw_input("Please enter a phrase: ") | |
doc = nlp(unicode(text)) | |
for token in doc: | |
print(token, token.pos_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment