Merge pull request #6853 from svlandeg/fix/docs_new_v3 [ci skip]

adding new="3" mentions in the doc
This commit is contained in:
Ines Montani 2021-01-29 21:39:43 +11:00 committed by GitHub
commit d600bc6d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ more efficient than processing texts one-by-one.
| `n_process` <Tag variant="new">2.2.2</Tag> | Number of processors to use. Defaults to `1`. ~~int~~ | | `n_process` <Tag variant="new">2.2.2</Tag> | Number of processors to use. Defaults to `1`. ~~int~~ |
| **YIELDS** | Documents in the order of the original text. ~~Doc~~ | | **YIELDS** | Documents in the order of the original text. ~~Doc~~ |
## Language.set_error_handler {#set_error_handler tag="method"} ## Language.set_error_handler {#set_error_handler tag="method" new="3"}
Define a callback that will be invoked when an error is thrown during processing Define a callback that will be invoked when an error is thrown during processing
of one or more documents. Specifically, this function will call of one or more documents. Specifically, this function will call

View File

@ -100,7 +100,7 @@ applied to the `Doc` in order. Both [`__call__`](/api/pipe#call) and
| `batch_size` | The number of documents to buffer. Defaults to `128`. ~~int~~ | | `batch_size` | The number of documents to buffer. Defaults to `128`. ~~int~~ |
| **YIELDS** | The processed documents in order. ~~Doc~~ | | **YIELDS** | The processed documents in order. ~~Doc~~ |
## TrainablePipe.set_error_handler {#set_error_handler tag="method"} ## TrainablePipe.set_error_handler {#set_error_handler tag="method" new="3"}
Define a callback that will be invoked when an error is thrown during processing Define a callback that will be invoked when an error is thrown during processing
of one or more documents with either [`__call__`](/api/pipe#call) or of one or more documents with either [`__call__`](/api/pipe#call) or
@ -122,7 +122,7 @@ processed, and the original error.
| --------------- | -------------------------------------------------------------------------------------------------------------- | | --------------- | -------------------------------------------------------------------------------------------------------------- |
| `error_handler` | A function that performs custom error handling. ~~Callable[[str, Callable[[Doc], Doc], List[Doc], Exception]~~ | | `error_handler` | A function that performs custom error handling. ~~Callable[[str, Callable[[Doc], Doc], List[Doc], Exception]~~ |
## TrainablePipe.get_error_handler {#get_error_handler tag="method"} ## TrainablePipe.get_error_handler {#get_error_handler tag="method" new="3"}
Retrieve the callback that performs error handling for this component's Retrieve the callback that performs error handling for this component's
[`__call__`](/api/pipe#call) and [`pipe`](/api/pipe#pipe) methods. If no custom [`__call__`](/api/pipe#call) and [`pipe`](/api/pipe#pipe) methods. If no custom