nltk.Text.index

Text.index(word)[source]

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