From d1602e1ecea2d3ff14288df65e8f1a25ec634516 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 8 Oct 2020 11:56:50 +0200 Subject: [PATCH] Update docs [ci skip] --- website/docs/usage/embeddings-transformers.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/usage/embeddings-transformers.md b/website/docs/usage/embeddings-transformers.md index c0611787b..549c3bcc4 100644 --- a/website/docs/usage/embeddings-transformers.md +++ b/website/docs/usage/embeddings-transformers.md @@ -235,7 +235,7 @@ The `Transformer` component sets the which lets you access the transformers outputs at runtime. ```cli -$ python -m spacy download en_core_trf_lg +$ python -m spacy download en_core_web_trf ``` ```python @@ -249,7 +249,7 @@ from thinc.api import use_pytorch_for_gpu_memory, require_gpu use_pytorch_for_gpu_memory() require_gpu(0) -nlp = spacy.load("en_core_trf_lg") +nlp = spacy.load("en_core_web_trf") for doc in nlp.pipe(["some text", "some other text"]): tokvecs = doc._.trf_data.tensors[-1] ``` @@ -269,7 +269,7 @@ def custom_annotation_setter(docs, trf_data): for doc, data in zip(docs, doc_data): doc._.custom_attr = data -nlp = spacy.load("en_core_trf_lg") +nlp = spacy.load("en_core_web_trf") nlp.get_pipe("transformer").set_extra_annotations = custom_annotation_setter doc = nlp("This is a text") assert isinstance(doc._.custom_attr, TransformerData) @@ -286,7 +286,7 @@ of objects by referring to creation functions, including functions you register yourself. For details on how to get started with training your own model, check out the [training quickstart](/usage/training#quickstart). -