Esempio n. 1
0
def text_jaccard(col1: Column, col2: Column) -> float:
    col1_array = np.array(col1.text().split(" "))
    col2_array = np.array(col2.text().split(" "))

    return jaccard(col1_array, col2_array)
Esempio n. 2
0
def text_cosine(col1: Column, col2: Column) -> float:
    return cosine(col1.text(), col2.text())