Update spacy/pipeline/spancat.py

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
This commit is contained in:
kadarakos 2023-03-03 15:55:15 +01:00 committed by GitHub
parent 0a74e8c260
commit b972328337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ class SpanCategorizer(TrainablePipe):
threshold: Optional[float] = 0.5, threshold: Optional[float] = 0.5,
scorer: Optional[Callable] = spancat_score, scorer: Optional[Callable] = spancat_score,
) -> None: ) -> None:
"""Initialize the multilabel or multiclass span categorizer. """Initialize the multi-label or multi-class span categorizer.
The 'single_label' argument configures whether the component The 'single_label' argument configures whether the component
should only produce one label per span (multiclass) or if it should only produce one label per span (multiclass) or if it
can produce multiple labels per span (multilabel). In the can produce multiple labels per span (multilabel). In the