def similarity_sub_coef(a, b, a_coef, b_coef):
    sim_jaccard = sm.jaccard_similarity(a, b)
    sim_euclidean = sm.dis_to_sim(sm.euclidean_distance(a_coef, b_coef))
    if(sim_jaccard < 0.5):
	return sim_jaccard
    else:
        return (sm.jaccard_similarity(a, b) + sm.dis_to_sim(sm.euclidean_distance(a_coef, b_coef)))/2
def similarity_sub_coef(a, b, a_coef, b_coef):
#return (sm.jaccard_similarity(a, b))
    return (sm.jaccard_similarity(a, b) + sm.dis_to_sim(sm.euclidean_distance(a_coef, b_coef)))/2
def similarity_sub(a, b):
    return sm.jaccard_similarity(a, b)