Update docs

This commit is contained in:
Ines Montani 2020-08-05 15:01:00 +02:00
parent cdec46493f
commit 2a4d56e730
2 changed files with 16 additions and 6 deletions

View File

@ -330,9 +330,9 @@ See the [`Transformer`](/api/transformer) API reference and
> ``` > ```
| Registry name | Description | | 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. | | [`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`. | | [`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"} ## Training data loaders and batchers {#loaders-batchers new="3"}

View File

@ -68,6 +68,10 @@ const QuickstartTraining = ({ id, title, download = 'config.cfg' }) => {
id: code, id: code,
title: name, title: name,
})) }))
const recommendedTrf = Object.assign(
{},
...langs.map(({ code }) => ({ [code]: { sm: 'TODO', lg: 'TODO' } }))
)
return ( return (
<Quickstart <Quickstart
download={download} download={download}
@ -85,14 +89,20 @@ const QuickstartTraining = ({ id, title, download = 'config.cfg' }) => {
<span>[components]</span> <span>[components]</span>
<br /> <br />
<span>[components.transformer]</span> <span>[components.transformer]</span>
<QS optimize="efficiency">name = "{MODELS_SMALL[lang]}"</QS> <QS optimize="efficiency">name = "{recommendedTrf[lang].sm}"</QS>
<QS optimize="accuracy">name = "{MODELS_LARGE[lang]}"</QS> <QS optimize="accuracy">name = "{recommendedTrf[lang].lg}"</QS>
{!!pipeline.length && <br />} {!!pipeline.length && <br />}
{pipeline.map((pipe, i) => ( {pipeline.map((pipe, i) => (
<> <>
{i !== 0 && <br />} {i !== 0 && <br />}
<span>[components.{pipe}]</span> <span>[components.{pipe}]</span>
<span>factory = "{pipe}"</span> <span>factory = "{pipe}"</span>
<QS config="independent">
<br />
[components.parser.model.tok2vec]
<br />
@architectures = "spacy.Tok2Vec.v1"
</QS>
</> </>
))} ))}
</Quickstart> </Quickstart>