def mention_to_tokens(mention, token_type="<STR_LIT>", lowercase=False):
tokens = mention.context.sentence.__dict__[token_type]<EOL>return [w.lower() if lowercase else w for w in tokens]<EOL>
Extract tokens from the mention

:param mention: mention object.
:param token_type: token type that wants to extract.
:type token_type: str
:param lowercase: use lowercase or not.
:type lowercase: bool
:return: The token list.
:rtype: list