Requirements nltk import nltk nltk.download() Ghostscript Download from the link given below. https://www.ghostscript.com/releases/gsdnld.html Add the Path (For Example - C:\Program Files\gs\gs9.55.0\bin) to the Environment Variables. Word Frequency Identification Corpus Annotation (POS Tagging) Creating Parse Trees