mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 01:51:58 +03:00
Format.
This commit is contained in:
parent
638103eb1b
commit
2c80db9371
|
@ -443,7 +443,9 @@ class EntityLinker(TrainablePipe):
|
|||
(
|
||||
SpanGroup(
|
||||
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
|
||||
if len(doc) and len(doc.ents)
|
||||
|
|
Loading…
Reference in New Issue
Block a user