Skip to content

text2vec, chinese text to vetor.(文本向量化表示工具,包括词向量化、句子向量化)

License

Notifications You must be signed in to change notification settings

ssongna/text2vec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simtext

simtext, the most accurate Chinese text similarity calculation tool.(最准的中文文本相似度计算工具)

Install

  • pip3 install simtext

or

git clone https://github.com/shibing624/simtext.git
cd simtext
python3 setup.py install

Usage:

import simtext

a = '如何更换花呗绑定银行卡'
b = '花呗更改绑定银行卡'
s = simtext.score(a, b)
print(s)

output:

0.9569100456524151

About

text2vec, chinese text to vetor.(文本向量化表示工具,包括词向量化、句子向量化)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%