Tokenisation splits a text into units (words, word pieces, punctuation), usually after normalising case. A bag of words represents a document by the counts of its tokens, forgetting their order. An n-gram is a sequence of consecutive tokens; bags of n-grams keep some order. Term frequency–inverse document frequency (tf-idf) weights the count of term in document by , where of the documents contain , so that words found everywhere count for little; the rows are then scaled to unit length.
书籍暂未推出简体中文版——当前显示英文版。
Quantitative Finance · 术语表
什么是 Tokenisation, bag of words, n-gram, tf-idf?
又称: tokenisation · bag of words · n-gram · term frequency--inverse document frequency