Update sentence_sim_feature.py

This commit is contained in:
yongzhuo 2019-04-13 00:37:00 +08:00 committed by GitHub
parent 196e0770f7
commit 4b8c21d4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,8 @@
# -*- coding:utf-8 -*-
# -*- created by: moyongzhuo -*-
# -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/4/1 10:35
# @author :Mo
# @function :calculate Similarity of text and vector, which are tf-idf and pinyin
from FeatureProject.distance_text_or_vec import euclidean_distance, cosine_distance, manhattan_distance, euclidean_distance, jaccard_similarity_coefficient_distance