public final class NGramTokenizer extends LexicalTokenizer
| Constructor and Description |
|---|
NGramTokenizer(String name)
Constructor of
NGramTokenizer. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getMaxGram()
Get the maxGram property: The maximum n-gram length.
|
Integer |
getMinGram()
Get the minGram property: The minimum n-gram length.
|
List<TokenCharacterKind> |
getTokenChars()
Get the tokenChars property: Character classes to keep in the tokens.
|
NGramTokenizer |
setMaxGram(Integer maxGram)
Set the maxGram property: The maximum n-gram length.
|
NGramTokenizer |
setMinGram(Integer minGram)
Set the minGram property: The minimum n-gram length.
|
NGramTokenizer |
setTokenChars(List<TokenCharacterKind> tokenChars)
Set the tokenChars property: Character classes to keep in the tokens.
|
NGramTokenizer |
setTokenChars(TokenCharacterKind... tokenChars)
Set the tokenChars property: Character classes to keep in the tokens.
|
getNamepublic NGramTokenizer(String name)
NGramTokenizer.name - The name of the tokenizer. It must only contain letters, digits, spaces,
dashes or underscores, can only start and end with alphanumeric
characters, and is limited to 128 characters.public Integer getMinGram()
public NGramTokenizer setMinGram(Integer minGram)
minGram - the minGram value to set.public Integer getMaxGram()
public NGramTokenizer setMaxGram(Integer maxGram)
maxGram - the maxGram value to set.public List<TokenCharacterKind> getTokenChars()
public NGramTokenizer setTokenChars(TokenCharacterKind... tokenChars)
tokenChars - the tokenChars value to set.public NGramTokenizer setTokenChars(List<TokenCharacterKind> tokenChars)
tokenChars - the tokenChars value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.