我正在研究關鍵字提取系統,在prepossessing之後,系統通過檢查匹配相同模式的文本提取候選關鍵字 現在我想知道如何找到提取的候選關鍵字之間的相似度意義? 例如,讓我們看看接下來的矩陣: k1 k2 k3
k1 1 ?1 ?2
k2 ?1 1 ?3
k3 ?2 ?3 1
how can I find the values of (?) ???
where
(?
#coding:utf-8
import codecs
import tensorflow as tf
from guppy import hpy
import numpy as np
from scipy.sparse import csc_matrix
import collections
def _read_words(filename):
with open(fil