nltk library code example Example 1: nltk in python pip install nltk Example 2: nltk pip pip install nltk Example 3: import nltk in python import nltk