def indexof(self, value, tag=WORD):
match = lambda a, b: a.endswith("<STR_LIT:*>") and b.startswith(a[:-<NUM_LIT:1>]) or a==b<EOL>indices = []<EOL>for i in range(len(self.words)):<EOL><INDENT>if match(value, unicode(self.get(i, tag))):<EOL><INDENT>indices.append(i)<EOL><DEDENT><DEDENT>return indices<EOL>
Returns the indices of tokens in the sentence where the given token tag equals the string.
            The string can contain a wildcard "*" at the end (this way "NN*" will match "NN" and "NNS").
            The tag can be WORD, LEMMA, POS, CHUNK, PNP, RELATION, ROLE, ANCHOR or a custom word tag.
            For example: Sentence.indexof("VP", tag=CHUNK) 
            returns the indices of all the words that are part of a VP chunk.