Skip to main content

This toolkit provides deep learning-based similarity utilities.

Project description

DeepSim

This toolkit provides deep learning-based similarity utilities.

Example

'''models for type
BERT: 
shibing624/text2vec-base-chinese
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
hfl/chinese-macbert-base: 
uer/roberta-medium-wwm-chinese-cluecorpussmall
hfl/chinese-roberta-wwm-ext
Langboat/mengzi-bert-base
WMD: 
w2v-light-tencent-chinese
'''
from deepsim import *
sim_utils=SimilarityUtils(type='w2v')
list_r=sim_utils.get_similarity('I like you!','I love you!')
print(list_r)

License

The deepsim project is provided by Donghua Chen.

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

deepsim-0.0.1a0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

deepsim-0.0.1a0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

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