Is there a more efficient way of doing this? My code reads a text file and extracts all Nouns.
import nltk File = open(fileName) #open file lines = File.rea
if you get Resource punkt not found. Please use the NLTK Downloader to obtain the resource: error
just do
import nltk nltk.download('punkt')