diff --git a/spacy/pattern/pattern.py b/spacy/pattern/pattern.py index d47022fec..282cea0e3 100644 --- a/spacy/pattern/pattern.py +++ b/spacy/pattern/pattern.py @@ -280,6 +280,7 @@ def match_token(token, bind_map = { 'word': lambda t: t.orth_, 'lemma': lambda t: t.lemma_, + 'ent': lambda t: t.ent_type_, } for target_key, target_value in target_attributes.items():