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

13 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.7783981956422068

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%