mirror of https://github.com/explosion/spaCy.git
Update adding languages docs [ci skip]
This commit is contained in:
parent
3126dd0904
commit
bbf7337eaf
|
@ -448,6 +448,18 @@ resources = {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> #### Lookups example
|
||||||
|
>
|
||||||
|
> ```python
|
||||||
|
> table = nlp.vocab.lookups.get_table("my_table")
|
||||||
|
> value = table.get("some_key")
|
||||||
|
> ```
|
||||||
|
|
||||||
|
If your language needs other large dictionaries and resources, you can also add
|
||||||
|
those files here. The data will become available via a [`Lookups`](/api/lookups)
|
||||||
|
table in `nlp.vocab.lookups`, and you'll be able to access it from the tokenizer
|
||||||
|
or a custom pipeline component (via `doc.vocab.lookups`).
|
||||||
|
|
||||||
### Tag map {#tag-map}
|
### Tag map {#tag-map}
|
||||||
|
|
||||||
Most treebanks define a custom part-of-speech tag scheme, striking a balance
|
Most treebanks define a custom part-of-speech tag scheme, striking a balance
|
||||||
|
|
Loading…
Reference in New Issue