mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 17:54:39 +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 = {
|
bind_map = {
|
||||||
'word': lambda t: t.orth_,
|
'word': lambda t: t.orth_,
|
||||||
'lemma': lambda t: t.lemma_,
|
'lemma': lambda t: t.lemma_,
|
||||||
|
'ent': lambda t: t.ent_type_,
|
||||||
}
|
}
|
||||||
|
|
||||||
for target_key, target_value in target_attributes.items():
|
for target_key, target_value in target_attributes.items():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user