mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
update dosctring
This commit is contained in:
parent
6fe7c66f36
commit
9d6793604e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user