Fix links

This commit is contained in:
shadeMe 2023-08-14 13:16:27 +02:00
parent 74b029d45e
commit 2d834d12a5
No known key found for this signature in database
GPG Key ID: 6FCA9FC635B2A402

View File

@ -78,7 +78,7 @@ below).
| Setting | Description | | Setting | Description |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model` | The Thinc [`Model`](https://thinc.ai/docs/api-model) wrapping the transformer. Defaults to [CuratedTransformerModel](/api/architectures#CuratedTransformerModel). ~~Model[List[Doc], FullCuratedTransformerBatch]~~ | | `model` | The Thinc [`Model`](https://thinc.ai/docs/api-model) wrapping the transformer. Defaults to [`XlmrTransformer`](/api/architectures#curated-trf). ~~Model~~ |
| `frozen` | If `True`, the model's weights are frozen and no backpropagation is performed. ~~bool~~ | | `frozen` | If `True`, the model's weights are frozen and no backpropagation is performed. ~~bool~~ |
| `all_layer_outputs` | If `True`, the model returns the outputs of all the layers. Otherwise, only the output of the last layer is returned. This must be set to `True` if any of the pipe's downstream listeners require the outputs of all transformer layers. ~~bool~~ | | `all_layer_outputs` | If `True`, the model returns the outputs of all the layers. Otherwise, only the output of the last layer is returned. This must be set to `True` if any of the pipe's downstream listeners require the outputs of all transformer layers. ~~bool~~ |
@ -135,9 +135,10 @@ component using its string name and [`nlp.add_pipe`](/api/language#create_pipe).
Apply the pipe to one document. The document is modified in place, and returned. Apply the pipe to one document. The document is modified in place, and returned.
This usually happens under the hood when the `nlp` object is called on a text This usually happens under the hood when the `nlp` object is called on a text
and all pipeline components are applied to the `Doc` in order. Both and all pipeline components are applied to the `Doc` in order. Both
[`__call__`](/api/transformer#call) and [`pipe`](/api/transformer#pipe) delegate [`__call__`](/api/curatedtransformer#call) and
to the [`predict`](/api/transformer#predict) and [`pipe`](/api/curatedtransformer#pipe) delegate to the
[`set_annotations`](/api/transformer#set_annotations) methods. [`predict`](/api/curatedtransformer#predict) and
[`set_annotations`](/api/curatedtransformer#set_annotations) methods.
> #### Example > #### Example
> >
@ -157,10 +158,10 @@ to the [`predict`](/api/transformer#predict) and
Apply the pipe to a stream of documents. This usually happens under the hood Apply the pipe to a stream of documents. This usually happens under the hood
when the `nlp` object is called on a text and all pipeline components are when the `nlp` object is called on a text and all pipeline components are
applied to the `Doc` in order. Both [`__call__`](/api/transformer#call) and applied to the `Doc` in order. Both [`__call__`](/api/curatedtransformer#call)
[`pipe`](/api/transformer#pipe) delegate to the and [`pipe`](/api/curatedtransformer#pipe) delegate to the
[`predict`](/api/transformer#predict) and [`predict`](/api/curatedtransformer#predict) and
[`set_annotations`](/api/transformer#set_annotations) methods. [`set_annotations`](/api/curatedtransformer#set_annotations) methods.
> #### Example > #### Example
> >
@ -402,10 +403,11 @@ serialization by passing in the string names via the `exclude` argument.
CuratedTransformer tokens and outputs for one `Doc` object. The transformer CuratedTransformer tokens and outputs for one `Doc` object. The transformer
models return tensors that refer to a whole padded batch of documents. These models return tensors that refer to a whole padded batch of documents. These
tensors are wrapped into the tensors are wrapped into the
[FullCuratedTransformerBatch](/api/transformer#fulltransformerbatch) object. The [FullCuratedTransformerBatch](/api/curatedtransformer#fulltransformerbatch)
`FullCuratedTransformerBatch` then splits out the per-document data, which is object. The `FullCuratedTransformerBatch` then splits out the per-document data,
handled by this class. Instances of this class are typically assigned to the which is handled by this class. Instances of this class are typically assigned
[`Doc._.trf_data`](/api/transformer#assigned-attributes) extension attribute. to the [`Doc._.trf_data`](/api/curatedtransformer#assigned-attributes) extension
attribute.
| Name | Description | | Name | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |