Skip to content

Instantly share code, notes, and snippets.

@kylegallatin
Created January 28, 2019 19:31
Show Gist options
  • Save kylegallatin/5290ac6810ba1948a6c574b45a56a5dc to your computer and use it in GitHub Desktop.
Save kylegallatin/5290ac6810ba1948a6c574b45a56a5dc to your computer and use it in GitHub Desktop.
App
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