Add scorer to docstring

This commit is contained in:
Lj Miranda 2022-11-02 12:10:49 +08:00
parent 60a8df7c5f
commit 023a1a6c04

View File

@ -86,6 +86,9 @@ def make_spancat(
spans_key (str): Key of the doc.spans dict to save the spans under. During 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 initialization and training, the component will look for spans on the
reference document under the same key. 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. negative_weight (float): Multiplier for the loss terms.
Can be used to down weigh the negative samples if there are too many. Can be used to down weigh the negative samples if there are too many.
allow_overlap (bool): If True the data is assumed to allow_overlap (bool): If True the data is assumed to