From 72abf9e1021df4300d0f776b80980442247d6a9a Mon Sep 17 00:00:00 2001 From: Peter Baumgartner <5107405+pmbaumgartner@users.noreply.github.com> Date: Mon, 27 Dec 2021 05:18:08 -0500 Subject: [PATCH] MultiHashEmbed vector docs correction (#9918) --- spacy/ml/models/tok2vec.py | 2 +- website/docs/api/architectures.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/ml/models/tok2vec.py b/spacy/ml/models/tok2vec.py index 44ab50e85..ecdf6be27 100644 --- a/spacy/ml/models/tok2vec.py +++ b/spacy/ml/models/tok2vec.py @@ -123,7 +123,7 @@ def MultiHashEmbed( attributes are NORM, PREFIX, SUFFIX and SHAPE. This lets the model take into account some subword information, without constructing a fully character-based representation. If pretrained vectors are available, they can be included in - the representation as well, with the vectors table will be kept static + the representation as well, with the vectors table kept static (i.e. it's not updated). The `width` parameter specifies the output width of the layer and the widths diff --git a/website/docs/api/architectures.md b/website/docs/api/architectures.md index 44ba94d9e..07b76393f 100644 --- a/website/docs/api/architectures.md +++ b/website/docs/api/architectures.md @@ -158,7 +158,7 @@ be configured with the `attrs` argument. The suggested attributes are `NORM`, `PREFIX`, `SUFFIX` and `SHAPE`. This lets the model take into account some subword information, without construction a fully character-based representation. If pretrained vectors are available, they can be included in the -representation as well, with the vectors table will be kept static (i.e. it's +representation as well, with the vectors table kept static (i.e. it's not updated). | Name | Description | @@ -296,7 +296,7 @@ learned linear projection to control the dimensionality. Unknown tokens are mapped to a zero vector. See the documentation on [static vectors](/usage/embeddings-transformers#static-vectors) for details. -| Name |  Description | +| Name | Description | | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `nO` | The output width of the layer, after the linear projection. ~~Optional[int]~~ | | `nM` | The width of the static vectors. ~~Optional[int]~~ | @@ -318,7 +318,7 @@ mapped to a zero vector. See the documentation on Extract arrays of input features from [`Doc`](/api/doc) objects. Expects a list of feature names to extract, which should refer to token attributes. -| Name |  Description | +| Name | Description | | ----------- | ------------------------------------------------------------------------ | | `columns` | The token attributes to extract. ~~List[Union[int, str]]~~ | | **CREATES** | The created feature extraction layer. ~~Model[List[Doc], List[Ints2d]]~~ |