Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Usage
microsoftml.n_gram(ngram_length: numbers.Real = 1,
skip_length: numbers.Real = 0, all_lengths: bool = True,
max_num_terms: list = [10000000], weighting: str = 'Tf')
Description
Extracts NGrams from text and convert them to vector using dictionary.
Arguments
ngram_length
Ngram length (settings).
skip_length
Maximum number of tokens to skip when constructing an ngram (settings).
all_lengths
Whether to include all ngram lengths up to NgramLength or only NgramLength (settings).
max_num_terms
Maximum number of ngrams to store in the dictionary (settings).
weighting
The weighting criteria (settings).