mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
Update spacy/pipeline/spancat.py
Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
This commit is contained in:
parent
fded200128
commit
c7e7343999
|
@ -212,7 +212,7 @@ def make_spancat_singlelabel(
|
||||||
allow_overlap: bool,
|
allow_overlap: bool,
|
||||||
scorer: Optional[Callable],
|
scorer: Optional[Callable],
|
||||||
) -> "SpanCategorizer":
|
) -> "SpanCategorizer":
|
||||||
"""Create a SpanCategorizer component and configure it for multiclass
|
"""Create a SpanCategorizer component and configure it for multi-class
|
||||||
classification. With this configuration each span can get at most one
|
classification. With this configuration each span can get at most one
|
||||||
label. The span categorizer consists of two
|
label. 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user