From 5a8e3ffaf5e780ef010596f710fbb680b77fc79b Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Sat, 6 Feb 2021 09:53:35 +0800 Subject: [PATCH] Closed https://github.com/chatopera/Synonyms/issues/118 provide china mirror for word vector file --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c61a26c..14c8c7e 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,19 @@ pip install -U synonyms **提示:安装后初次使用会下载词向量文件,下载速度取决于网络情况。** -![](./assets/3.gif) +[#118 词向量文件一直下载不下来?](https://github.com/chatopera/Synonyms/issues/118)可尝试按下述方法设置国内的词向量备份地址: + +``` +export SYNONYMS_WORD2VEC_BIN_MODEL_ZH_CN=https://gitee.com/chatopera/cskefu/attach_files/610602/download/words.vector.gz +pip install -U synonyms +``` + +其它环境变量介绍见下文。 本文档的配置和接口说明面向 python 工具包。 +![](./assets/3.gif) + ## Usage 支持使用环境变量配置分词词表和 word2vec 词向量文件。