mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-12 04:38:28 +03:00
Add 'ent' to node matching key
This commit is contained in:
parent
d010f5a123
commit
4289a21703
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user