def overlap_tokens(doc, other_doc):
overlap = []<EOL>other_tokens = [token.text for token in other_doc]<EOL>for token in doc:<EOL><INDENT>if token.text in other_tokens:<EOL><INDENT>overlap.append(token)<EOL><DEDENT><DEDENT>return overlap<EOL>
Get the tokens from the original Doc that are also in the comparison Doc.