import nltk

nltk.download('maxent_ne_chunker')
nltk.download('words')

f = open('sravan.txt', 'r',encoding='utf-8')
input = f.read()

wtokens = nltk.word_tokenize(input)

for i in wtokens:
    for j in range(len(wtokens)-2):
        print(wtokens[j],wtokens[j+1],wtokens[j+2])
