From bbf7337eafae2a9b75d3de45cf5167de07f07753 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 14 Sep 2019 15:32:15 +0200 Subject: [PATCH] Update adding languages docs [ci skip] --- website/docs/usage/adding-languages.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/docs/usage/adding-languages.md b/website/docs/usage/adding-languages.md index d89891297..94d75ea31 100644 --- a/website/docs/usage/adding-languages.md +++ b/website/docs/usage/adding-languages.md @@ -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} Most treebanks define a custom part-of-speech tag scheme, striking a balance