Created
October 13, 2020 16:28
-
-
Save megha444/5ea336b8201fd8b536d0754b43bc7472 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 nltk | |
from nltk.tokenize import word_tokenize | |
nltk.download ('punkt') | |
text = "This is a sample text to show word tokenization" | |
print(word_tokenize(text)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment