update dosctring

This commit is contained in:
kadarakos 2023-05-08 10:24:56 +00:00
parent 6fe7c66f36
commit 9d6793604e

View File

@ -88,10 +88,8 @@ def make_span_finder(
to to
training_key (str): Name of the span group the training spans are read training_key (str): Name of the span group the training spans are read
from from
max_length (int): Max length of the produced spans (no max limitation when max_length (Optional[int]): Max length of the produced spans, defaults to None meaning unlimited length.
set to 0) min_length (Optional[int]): Min length of the produced spans, defaults to None meaining shortest span is length 1.
min_length (int): Min length of the produced spans (no min limitation when
set to 0)
""" """
return SpanFinder( return SpanFinder(
nlp, nlp,
@ -192,8 +190,8 @@ class SpanFinder(TrainablePipe):
scorer (Optional[Callable]): The scoring method. scorer (Optional[Callable]): The scoring method.
predicted_key (str): Name of the span group the candidate spans are saved to predicted_key (str): Name of the span group the candidate spans are saved to
training_key (str): Name of the span group the training spans are read from training_key (str): Name of the span group the training spans are read from
max_length (int): Max length of the produced spans (unlimited when set to 0) max_length (Optional[int]): Max length of the produced spans, defaults to None meaning unlimited length.
min_length (int): Min length of the produced spans (unlimited when set to 0) min_length (Optional[int]): Min length of the produced spans, defaults to None meaining shortest span is length 1.
""" """
self.vocab = nlp.vocab self.vocab = nlp.vocab
self.threshold = threshold self.threshold = threshold