nltk.text_type.rindex

text_type.rindex(sub[, start[, end]]) → int

Like S.rfind() but raise ValueError when the substring is not found.