Skip to main content

Chinese Text Similarity Calculation Tool

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simtext, version 1.4
Filename, size File type Python version Upload date Hashes
Filename, size simtext-1.4.tar.gz (46.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page