def triples(self, words):
if len(words) < <NUM_LIT:3>:<EOL><INDENT>return<EOL><DEDENT>for i in range(len(words) - <NUM_LIT:2>):<EOL><INDENT>yield (words[i], words[i+<NUM_LIT:1>], words[i+<NUM_LIT:2>])<EOL><DEDENT>
Generates triples from the given data string. So if our string were
                "What a lovely day", we'd generate (What, a, lovely) and then
                (a, lovely, day).