From 2a4d56e730debf0ab670bc84ebf33ad7a490c091 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 5 Aug 2020 15:01:00 +0200 Subject: [PATCH] Update docs --- website/docs/api/top-level.md | 8 ++++---- website/src/widgets/quickstart-training.js | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/website/docs/api/top-level.md b/website/docs/api/top-level.md index 2ebdb911e..882dfa193 100644 --- a/website/docs/api/top-level.md +++ b/website/docs/api/top-level.md @@ -329,10 +329,10 @@ See the [`Transformer`](/api/transformer) API reference and > return annotation_sette > ``` -| Registry name | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [`span_getters`](/api/transformer#span_getters) | Registry for functions that take a batch of `Doc` objects and return a list of `Span` objects to process by the transformer, e.g. sentences. | -| [`annotation_setters`](/api/transformers#annotation_setters) | Registry for functions that create annotation setters. Annotation setters are functions that take a batch of `Doc` objects and a [`FullTransformerBatch`](/api/transformer#fulltransformerbatch) and can set additional annotations on the `Doc`. | +| Registry name | Description | +| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [`span_getters`](/api/transformer#span_getters) | Registry for functions that take a batch of `Doc` objects and return a list of `Span` objects to process by the transformer, e.g. sentences. | +| [`annotation_setters`](/api/transformer#annotation_setters) | Registry for functions that create annotation setters. Annotation setters are functions that take a batch of `Doc` objects and a [`FullTransformerBatch`](/api/transformer#fulltransformerbatch) and can set additional annotations on the `Doc`. | ## Training data loaders and batchers {#loaders-batchers new="3"} diff --git a/website/src/widgets/quickstart-training.js b/website/src/widgets/quickstart-training.js index 5f9b9acf3..53c3a0efb 100644 --- a/website/src/widgets/quickstart-training.js +++ b/website/src/widgets/quickstart-training.js @@ -68,6 +68,10 @@ const QuickstartTraining = ({ id, title, download = 'config.cfg' }) => { id: code, title: name, })) + const recommendedTrf = Object.assign( + {}, + ...langs.map(({ code }) => ({ [code]: { sm: 'TODO', lg: 'TODO' } })) + ) return ( { [components]
[components.transformer] - name = "{MODELS_SMALL[lang]}" - name = "{MODELS_LARGE[lang]}" + name = "{recommendedTrf[lang].sm}" + name = "{recommendedTrf[lang].lg}" {!!pipeline.length &&
} {pipeline.map((pipe, i) => ( <> {i !== 0 &&
} [components.{pipe}] factory = "{pipe}" + +
+ [components.parser.model.tok2vec] +
+ @architectures = "spacy.Tok2Vec.v1" +
))}