Skip to content

Commit

Permalink
#38 release code in v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hailiang-wang committed Feb 5, 2018
1 parent 7e1f6aa commit 55dec64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Chinese Synonyms for Natural Language Processing and Understanding.
```
pip install -U synonyms
```
兼容py2和py3,当前稳定版本 v2.1
兼容py2和py3,当前稳定版本 v2.2

![](./assets/3.gif)

Expand Down Expand Up @@ -58,25 +58,6 @@ synonyms.nearby(人脸) = [
发生历史性变革 vs 发生历史性变革: 1.0
```

* 句子相似度准确率

[SentenceSim](https://github.com/fssqawj/SentenceSim/blob/master/dev.txt)上进行测试。

```
测试语料条数为:7516条.
设定阈值 0.5:
相似度 > 0.5, 返回相似;
相似度 < 0.5, 返回不相似.
```

评测结果:

```
正确 : 6626,错误 : 890,准确度 : 88.15%
```

关于距离计算和阀值选取,参考 [enhance Synonyms#compare](https://github.com/huyingxi/Synonyms/issues/6)

### synonyms#display
以友好的方式打印近义词,方便调试,```display```调用了 ```synonyms#nearby``` 方法。

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='synonyms',
version='2.1',
version='2.2',
description='Chinese Synonyms for Natural Language Processing and Understanding',
long_description=LONGDOC,
author='Hai Liang Wang, Hu Ying Xi',
Expand Down

0 comments on commit 55dec64

Please sign in to comment.