Skip to content

Commit

Permalink
Closed #118 provide china mirror for word vector file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Liang Wang committed Feb 6, 2021
1 parent 00fd1c3 commit 5a8e3ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 词向量文件。
Expand Down

0 comments on commit 5a8e3ff

Please sign in to comment.