Created
August 24, 2020 21:41
-
-
Save sevperez/11e474b4b0e0de66399b74ec4adabfbd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def print_token_info(token): | |
print(f"Text:\t{token.text}") | |
print(f"Start:\t{token.start_char}") | |
print(f"End:\t{token.end_char}") | |
print_token_info(moby_p1.sentences[0].tokens[2]) | |
# Text: Ishmael | |
# Start: 8 | |
# End: 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment