public final class AnalyzeTextOptions extends Object
Constructor and Description |
---|
AnalyzeTextOptions(String text,
LexicalAnalyzerName analyzerName)
Constructor to
AnalyzeTextOptions which takes analyzerName. |
AnalyzeTextOptions(String text,
LexicalNormalizerName normalizerName)
Constructor to
AnalyzeTextOptions which takes normalizerName. |
AnalyzeTextOptions(String text,
LexicalTokenizerName tokenizerName)
Constructor to
AnalyzeTextOptions which takes tokenizerName. |
Modifier and Type | Method and Description |
---|---|
LexicalAnalyzerName |
getAnalyzerName()
Get the analyzer name property: The name of the analyzer to use to break the given text.
|
List<CharFilterName> |
getCharFilters()
Get the charFilters property: An optional list of character filters to use when breaking the given text.
|
LexicalNormalizerName |
getNormalizer()
Get the normalizer name property: The name of the normalizer to use to normalize the given text.
|
String |
getText()
Get the text property: The text to break into tokens.
|
List<TokenFilterName> |
getTokenFilters()
Get the tokenFilters property: An optional list of token filters to use when breaking the given text.
|
LexicalTokenizerName |
getTokenizerName()
Get the tokenizer name property: The name of the tokenizer to use to break the given text.
|
AnalyzeTextOptions |
setCharFilters(CharFilterName... charFilters)
Set the charFilters property: An optional list of character filters to use when breaking the given text.
|
AnalyzeTextOptions |
setTokenFilters(TokenFilterName... tokenFilters)
Set the tokenFilters property: An optional list of token filters to use when breaking the given text.
|
public AnalyzeTextOptions(String text, LexicalAnalyzerName analyzerName)
AnalyzeTextOptions
which takes analyzerName.text
- The text break into tokens.analyzerName
- The name of the analyzer to use to break the given text.public AnalyzeTextOptions(String text, LexicalTokenizerName tokenizerName)
AnalyzeTextOptions
which takes tokenizerName.text
- The text break into tokens.tokenizerName
- The name of the tokenizer to use to break the given text.public AnalyzeTextOptions(String text, LexicalNormalizerName normalizerName)
AnalyzeTextOptions
which takes normalizerName.text
- The text break into tokens.normalizerName
- The name of the normalizer to use to break the given text.public String getText()
public LexicalAnalyzerName getAnalyzerName()
public LexicalTokenizerName getTokenizerName()
public LexicalNormalizerName getNormalizer()
public List<TokenFilterName> getTokenFilters()
public AnalyzeTextOptions setTokenFilters(TokenFilterName... tokenFilters)
tokenFilters
- the tokenFilters value to set.public List<CharFilterName> getCharFilters()
public AnalyzeTextOptions setCharFilters(CharFilterName... charFilters)
charFilters
- the charFilters value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.