From e06ff8b71da4a3da9cab28ede4450e63ff51b271 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 26 Sep 2020 13:18:08 +0200 Subject: [PATCH] Update docs [ci skip] --- website/docs/usage/v3.md | 3 ++- website/meta/languages.json | 2 +- website/meta/universe.json | 6 ++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/website/docs/usage/v3.md b/website/docs/usage/v3.md index 91d97cae2..94c50e1ec 100644 --- a/website/docs/usage/v3.md +++ b/website/docs/usage/v3.md @@ -91,7 +91,8 @@ import Benchmarks from 'usage/\_benchmarks-models.md' - **Trained Pipelines:** [`en_core_web_trf`](/models/en#en_core_web_trf), [`de_dep_news_trf`](/models/de#de_dep_news_trf), [`es_dep_news_trf`](/models/es#es_dep_news_trf), - [`fr_dep_news_trf`](/models/fr#fr_dep_news_trf) + [`fr_dep_news_trf`](/models/fr#fr_dep_news_trf), + [`zh_core_web_trf`](/models/zh#zh_core_web_trf) - **Implementation:** [`spacy-transformers`](https://github.com/explosion/spacy-transformers) diff --git a/website/meta/languages.json b/website/meta/languages.json index 5ef3a6469..5b54c1977 100644 --- a/website/meta/languages.json +++ b/website/meta/languages.json @@ -210,7 +210,7 @@ { "code": "zh", "name": "Chinese", - "models": ["zh_core_web_sm", "zh_core_web_md", "zh_core_web_lg"], + "models": ["zh_core_web_sm", "zh_core_web_md", "zh_core_web_lg", "zh_core_web_trf"], "dependencies": [ { "name": "Jieba", diff --git a/website/meta/universe.json b/website/meta/universe.json index 010ff3618..74c35bdb8 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -2065,10 +2065,8 @@ "code_example": [ "import spacy", "", - "nlp = spacy.load(\"en_trf_bertbaseuncased_lg\")", - "doc = nlp(\"Apple shares rose on the news. Apple pie is delicious.\")", - "print(doc[0].similarity(doc[7]))", - "print(doc._.trf_last_hidden_state.shape)" + "nlp = spacy.load(\"en_core_web_trf\")", + "doc = nlp(\"Apple shares rose on the news. Apple pie is delicious.\")" ], "author": "Explosion", "author_links": {