mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 08:12:24 +03:00
Format.
This commit is contained in:
parent
638103eb1b
commit
2c80db9371
|
@ -443,7 +443,9 @@ class EntityLinker(TrainablePipe):
|
||||||
(
|
(
|
||||||
SpanGroup(
|
SpanGroup(
|
||||||
doc,
|
doc,
|
||||||
spans=[ent for ent in doc.ents if ent.label_ not in self.labels_discard],
|
spans=[
|
||||||
|
ent for ent in doc.ents if ent.label_ not in self.labels_discard
|
||||||
|
],
|
||||||
)
|
)
|
||||||
for doc in docs
|
for doc in docs
|
||||||
if len(doc) and len(doc.ents)
|
if len(doc) and len(doc.ents)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user