mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 12:20:20 +03:00
change to _prob
This commit is contained in:
parent
1a6a3494d7
commit
ba2b89df23
|
@ -312,8 +312,8 @@ You can load a probability table from [spacy-lookups-data](https://github.com/ex
|
||||||
import spacy
|
import spacy
|
||||||
from spacy.lookups import load_lookups
|
from spacy.lookups import load_lookups
|
||||||
nlp = spacy.load("en_core_web_sm")
|
nlp = spacy.load("en_core_web_sm")
|
||||||
lookups = load_lookups("en", ["lexeme_norm"])
|
lookups = load_lookups("en", ["lexeme_prob"])
|
||||||
nlp.vocab.lookups.add_table("lexeme_norm", lookups.get_table("lexeme_norm"))
|
nlp.vocab.lookups.add_table("lexeme_prob", lookups.get_table("lexeme_prob"))
|
||||||
```
|
```
|
||||||
|
|
||||||
When training a model from scratch you can also specify probability tables in the `config.cfg`.
|
When training a model from scratch you can also specify probability tables in the `config.cfg`.
|
||||||
|
@ -322,7 +322,7 @@ When training a model from scratch you can also specify probability tables in th
|
||||||
[initialize.lookups]
|
[initialize.lookups]
|
||||||
@misc = "spacy.LookupsDataLoader.v1"
|
@misc = "spacy.LookupsDataLoader.v1"
|
||||||
lang = ${nlp.lang}
|
lang = ${nlp.lang}
|
||||||
tables = ["lexeme_norm"]
|
tables = ["lexeme_prob"]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Custom components via entry points {id="entry-points-components"}
|
### Custom components via entry points {id="entry-points-components"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user