सभी किताबें

पेशेवर

ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Quantitative Finance · शब्दावली

Tokenisation, bag of words, n-gram, tf-idf क्या है?

अन्य नाम: tokenisation · bag of words · n-gram · term frequency--inverse document frequency

Definition 13.1 Machine Learning for Markets · अध्याय 13 — Text: From Bag of Words to Embeddings

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 nn consecutive tokens; bags of n-grams keep some order. Term frequency–inverse document frequency (tf-idf) weights the count of term ww in document dd by log⁡(N/nw)\log(N/n_w), where nwn_w of the NN documents contain ww, so that words found everywhere count for little; the rows are then scaled to unit length.

अध्याय में पढ़ें →