(三)語言模型和共現矩陣

1、語言模型 目的:克服one-hot、tf-idf方法中向量丟失句子中單詞的位置關係信息 1)2-gram 假設語料庫如下: John likes to watch movies. Mary likes too.John also likes to watch football games. 2-gram建立索引如下:(把每個句子中相鄰的2個單詞用一個編碼表示,不再是以前的一個單詞一個編碼) 「
相關文章
相關標籤/搜索