def __init__(self, sentence, string, tag=None, index=0):
        self.sentence, self.string, self.tag, self.index = sentence, string, tag, index
A word with a position in a sentence.
dataset/ETHPy150Open clips/pattern/pattern/text/search.py/Word.__init__