nltk.ConcordanceIndex.offsets

ConcordanceIndex.offsets(word)[source]
Return type:list(int)
Returns:A list of the offset positions at which the given word occurs. If a key function was specified for the index, then given word’s key will be looked up.