import nltk file=open('faceapp.txt','r') raw=file.read() tokens = nltk.word_tokenize(raw) faceapp = nltk.Text(tokens) faceapp.concordance('services')