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