Add note to migration guide about lexeme tables (fix #7290)

This just adds the resolution from #6388 to the docs.
This commit is contained in:
Paul O'Leary McCann 2021-07-27 19:19:25 +09:00
parent 67ecdcc3ac
commit 76ac95923a
1 changed files with 13 additions and 0 deletions

View File

@ -854,6 +854,19 @@ pipeline component, the [`AttributeRuler`](/api/attributeruler). See the
you have tag maps and morph rules in the v2.x format, you can load them into the you have tag maps and morph rules in the v2.x format, you can load them into the
attribute ruler before training using the `[initialize]` block of your config. attribute ruler before training using the `[initialize]` block of your config.
### Using Lexeme Tables
To use tables like `lexeme_prob` when training a model from scratch, you need
to add an entry to the `initialize` block in your config. Here's what that
looks like for the pretrained models:
```
[initialize.lookups]
@misc = "spacy.LookupsDataLoader.v1"
lang = ${nlp.lang}
tables = ["lexeme_norm"]
```
> #### What does the initialization do? > #### What does the initialization do?
> >
> The `[initialize]` block is used when > The `[initialize]` block is used when