mirror of https://github.com/explosion/spaCy.git
alphabetize registries
This commit is contained in:
parent
dc98f69b57
commit
ad2332d4b7
|
@ -222,21 +222,21 @@ passed to the component factory as arguments. This lets you configure the model
|
||||||
settings and hyperparameters. If a component block defines a `source`, the
|
settings and hyperparameters. If a component block defines a `source`, the
|
||||||
component will be copied over from an existing pretrained model, with its
|
component will be copied over from an existing pretrained model, with its
|
||||||
existing weights. This lets you include an already trained component in your
|
existing weights. This lets you include an already trained component in your
|
||||||
model pipeline, or update a pretrained components with more data specific to
|
model pipeline, or update a pretrained component with more data specific to
|
||||||
your use case.
|
your use case.
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
### config.cfg (excerpt)
|
### config.cfg (excerpt)
|
||||||
[components]
|
[components]
|
||||||
|
|
||||||
# "parser" and "ner" are sourced from pretrained model
|
# "parser" and "ner" are sourced from a pretrained model
|
||||||
[components.parser]
|
[components.parser]
|
||||||
source = "en_core_web_sm"
|
source = "en_core_web_sm"
|
||||||
|
|
||||||
[components.ner]
|
[components.ner]
|
||||||
source = "en_core_web_sm"
|
source = "en_core_web_sm"
|
||||||
|
|
||||||
# "textcat" and "custom" are created blank from built-in / custom factory
|
# "textcat" and "custom" are created blank from a built-in / custom factory
|
||||||
[components.textcat]
|
[components.textcat]
|
||||||
factory = "textcat"
|
factory = "textcat"
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ batch_size = 128
|
||||||
```
|
```
|
||||||
|
|
||||||
To refer to a function instead, you can make `[training.batch_size]` its own
|
To refer to a function instead, you can make `[training.batch_size]` its own
|
||||||
section and use the `@` syntax specify the function and its arguments – in this
|
section and use the `@` syntax to specify the function and its arguments – in this
|
||||||
case [`compounding.v1`](https://thinc.ai/docs/api-schedules#compounding) defined
|
case [`compounding.v1`](https://thinc.ai/docs/api-schedules#compounding) defined
|
||||||
in the [function registry](/api/top-level#registry). All other values defined in
|
in the [function registry](/api/top-level#registry). All other values defined in
|
||||||
the block are passed to the function as keyword arguments when it's initialized.
|
the block are passed to the function as keyword arguments when it's initialized.
|
||||||
|
|
Loading…
Reference in New Issue