From 4b8c21d4f27462798e566015fd83cfd78c4b1b7b Mon Sep 17 00:00:00 2001 From: yongzhuo <31341349+yongzhuo@users.noreply.github.com> Date: Sat, 13 Apr 2019 00:37:00 +0800 Subject: [PATCH] Update sentence_sim_feature.py --- FeatureProject/sentence_sim_feature.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FeatureProject/sentence_sim_feature.py b/FeatureProject/sentence_sim_feature.py index ffe056c..1b7ba0a 100644 --- a/FeatureProject/sentence_sim_feature.py +++ b/FeatureProject/sentence_sim_feature.py @@ -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