From 023a1a6c046b9f4239e958ca8a2b54891a8f1aaa Mon Sep 17 00:00:00 2001 From: Lj Miranda Date: Wed, 2 Nov 2022 12:10:49 +0800 Subject: [PATCH] Add scorer to docstring --- spacy/pipeline/spancat_exclusive.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/pipeline/spancat_exclusive.py b/spacy/pipeline/spancat_exclusive.py index 6ae661ff0..8d2748ea5 100644 --- a/spacy/pipeline/spancat_exclusive.py +++ b/spacy/pipeline/spancat_exclusive.py @@ -86,6 +86,9 @@ def make_spancat( spans_key (str): Key of the doc.spans dict to save the spans under. During initialization and training, the component will look for spans on the reference document under the same key. + scorer (Optional[Callable]): The scoring method. Defaults to + Scorer.score_spans for the Doc.spans[spans_key] with overlapping + spans allowed. negative_weight (float): Multiplier for the loss terms. Can be used to down weigh the negative samples if there are too many. allow_overlap (bool): If True the data is assumed to