def tag(s, tokenize=True, encoding="<STR_LIT:utf-8>", **kwargs):
tags = []<EOL>for sentence in parse(s, tokenize, True, False, False, False, encoding, **kwargs).split():<EOL><INDENT>for token in sentence:<EOL><INDENT>tags.append((token[<NUM_LIT:0>], token[<NUM_LIT:1>]))<EOL><DEDENT><DEDENT>return tags<EOL>
Returns a list of (token, tag)-tuples from the given string.