def get(self, index, tag=LEMMA):
if tag == WORD:<EOL><INDENT>return self.words[index]<EOL><DEDENT>if tag == LEMMA:<EOL><INDENT>return self.words[index].lemma<EOL><DEDENT>if tag == POS:<EOL><INDENT>return self.words[index].type<EOL><DEDENT>if tag == CHUNK:<EOL><INDENT>return self.words[index].chunk<EOL><DEDENT>if tag == PNP:<EOL><INDENT>return self.words[index].pnp<EOL><DEDENT>if tag == REL:<EOL><INDENT>ch = self.words[index].chunk; return ch and ch.relation<EOL><DEDENT>if tag == ROLE:<EOL><INDENT>ch = self.words[index].chunk; return ch and ch.role<EOL><DEDENT>if tag == ANCHOR:<EOL><INDENT>ch = self.words[index].pnp; return ch and ch.anchor<EOL><DEDENT>if tag in self.words[index].custom_tags:<EOL><INDENT>return self.words[index].custom_tags[tag]<EOL><DEDENT>return None<EOL>
Returns a tag for the word at the given index.
            The tag can be WORD, LEMMA, POS, CHUNK, PNP, RELATION, ROLE, ANCHOR or a custom word tag.