from nltk.tokenize import word_tokenize code example Example: import word_tokenize import nltk from nltk import word_tokenize