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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for deepsim-0.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 680437c053fbef521bc5ff4d9db781adba146f93e95452d432fd3f0e1a11b18d |
|
MD5 | 70cb9a82ab25e5b384f918404ea397e9 |
|
BLAKE2b-256 | 359e420d21831e185880eed5c8e9de9d7060c3bf1fb08c853457c10878c771e5 |