Skip to main content

compute similar scores of two text

Project description

[![Version][version-badge]][version-link] ![MIT License][license-badge]

compute similar scores of two strings

TextSimilarScore这是个计算两个短文本相似度的算法

安装方法

pip install TextSimilarScore

pip install -r resuirements.txt

使用方法

import TextSimilarScore.tools.TextSim as ts
test = ts.TextSimilarity('中移在线全链路智能化系统研发项目', '中移在线全国智能路由决策项目')
# 计算连续最长公共子串的距离
print(test.lcs())
# 计算编辑距离
print(test.minimumEditDistance())
# 基于tf-idf计算距离
print(test.splitWordSimlaryty())
# 计算JaccardSim系数
print(test.JaccardSim())

Project details


Download files

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

Source Distribution

TextSimilarScore-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TextSimilarScore-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file TextSimilarScore-0.0.2.tar.gz.

File metadata

  • Download URL: TextSimilarScore-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for TextSimilarScore-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5d4004ab3133506ca79341d4028354f6d5c93c8131c09aa007bed048dde832ff
MD5 2c9c798b742c25b3d0759c5cb855d87c
BLAKE2b-256 c467afe66896ef6cd2891195db82119c87e767f7cf23ae083673be8d6079542a

See more details on using hashes here.

File details

Details for the file TextSimilarScore-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: TextSimilarScore-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for TextSimilarScore-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74e485144bc677398f08c2e46b2b2f6dc477b506255f8b41595516a82a074635
MD5 d8ddb27bae63303460008694eaa0fbaf
BLAKE2b-256 c69ec7fc919810b0cc556a17f8a27f16a59ec2bdaffe9706e899a78ad3873ebc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page