public final class EdgeNGramTokenizer extends LexicalTokenizer
Constructor and Description |
---|
EdgeNGramTokenizer(String name)
Constructor of
LexicalTokenizer . |
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.
|
EdgeNGramTokenizer |
setMaxGram(Integer maxGram)
Set the maxGram property: The maximum n-gram length.
|
EdgeNGramTokenizer |
setMinGram(Integer minGram)
Set the minGram property: The minimum n-gram length.
|
EdgeNGramTokenizer |
setTokenChars(List<TokenCharacterKind> tokenChars)
Set the tokenChars property: Character classes to keep in the tokens.
|
EdgeNGramTokenizer |
setTokenChars(TokenCharacterKind... tokenChars)
Set the tokenChars property: Character classes to keep in the tokens.
|
getName
public EdgeNGramTokenizer(String name)
LexicalTokenizer
.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 EdgeNGramTokenizer setMinGram(Integer minGram)
minGram
- the minGram value to set.public Integer getMaxGram()
public EdgeNGramTokenizer setMaxGram(Integer maxGram)
maxGram
- the maxGram value to set.public List<TokenCharacterKind> getTokenChars()
public EdgeNGramTokenizer setTokenChars(TokenCharacterKind... tokenChars)
tokenChars
- the tokenChars value to set.public EdgeNGramTokenizer setTokenChars(List<TokenCharacterKind> tokenChars)
tokenChars
- the tokenChars value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.