Created
July 24, 2020 10:01
-
-
Save abhishek-shrm/0950074183c8874d0dfcd79c9469b9e1 to your computer and use it in GitHub Desktop.
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='It took me more than two hours to translate a few pages of English.' | |
for token in nlp(text): | |
print(token.text,'=>',token.dep_,'=>',token.head.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment