title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | keywords | ms.devlang | monikerRange |
---|---|---|---|---|---|---|---|---|---|---|
n_gram: n_gram |
Extracts NGrams from text and convert them to vector using dictionary. |
VanMSFT |
vanto |
07/15/2019 |
sql |
machine-learning-services |
reference |
N-Grams |
python |
>=sql-server-2017||>=sql-server-linux-ver15 |
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')
Extracts NGrams from text and convert them to vector using dictionary.
Ngram length (settings).
Maximum number of tokens to skip when constructing an ngram (settings).
Whether to include all ngram lengths up to NgramLength or only NgramLength (settings).
Maximum number of ngrams to store in the dictionary (settings).
The weighting criteria (settings).