nltk.TextCollection.index

TextCollection.index(word)

Find the index of the first occurrence of the word in the text.