def _parse_token(word, chunk="<STR_LIT:O>", pnp="<STR_LIT:O>", relation="<STR_LIT:O>", anchor="<STR_LIT:O>", <EOL>format=[WORD, POS, CHUNK, PNP, REL, ANCHOR, LEMMA]):
tags = []<EOL>for tag in format:<EOL><INDENT>if   tag == WORD   : tags.append(xml_decode(word.value))<EOL>elif tag == POS    : tags.append(xml_decode(word.get(XML_TYPE, "<STR_LIT:O>")))<EOL>elif tag == CHUNK  : tags.append(chunk)<EOL>elif tag == PNP    : tags.append(pnp)<EOL>elif tag == REL    : tags.append(relation)<EOL>elif tag == ANCHOR : tags.append(anchor)<EOL>elif tag == LEMMA  : tags.append(xml_decode(word.get(XML_LEMMA, "<STR_LIT>")))<EOL>else:<EOL><INDENT>tags.append(xml_decode(word.get(tag, "<STR_LIT:O>")))<EOL><DEDENT><DEDENT>return tags<EOL>
Returns a list of token tags parsed from the given <word> element.
        Tags that are not attributes in a <word> (e.g., relation) can be given as parameters.