From 4289a21703d97e72c3dc81105c897efe69a45b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Sun, 11 Jun 2017 18:30:53 +0200 Subject: [PATCH] Add 'ent' to node matching key --- spacy/pattern/pattern.py | 1 + 1 file changed, 1 insertion(+) 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():