mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-29 21:33:42 +03:00
Update spacy/pipeline/spancat_exclusive.py
Co-authored-by: kadarakos <kadar.akos@gmail.com>
This commit is contained in:
parent
826c1d3ca3
commit
b728eaae18
|
@ -83,7 +83,7 @@ def make_spancat(
|
||||||
) -> "SpanCategorizerExclusive":
|
) -> "SpanCategorizerExclusive":
|
||||||
"""Create a SpanCategorizerExclusive component. The span categorizer consists of two
|
"""Create a SpanCategorizerExclusive component. The span categorizer consists of two
|
||||||
parts: a suggester function that proposes candidate spans, and a labeller
|
parts: a suggester function that proposes candidate spans, and a labeller
|
||||||
model that predicts one or more labels for each span.
|
model that predicts a single label for each span.
|
||||||
|
|
||||||
suggester (Callable[[Iterable[Doc], Optional[Ops]], Ragged]): A function that suggests spans.
|
suggester (Callable[[Iterable[Doc], Optional[Ops]], Ragged]): A function that suggests spans.
|
||||||
Spans are returned as a ragged array with two integer columns, for the
|
Spans are returned as a ragged array with two integer columns, for the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user