Created
July 23, 2021 09:31
-
-
Save jabirjamal/f34dfb543761c8a57e5780f8adfee2bc 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_md') | |
text = "let's go!" | |
doc = nlp(text) | |
tok_exp = nlp.tokenizer.explain(text) | |
for t in tok_exp: | |
print(t[1], '\t', t[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment