public final class AnalyzeTextOptions extends Object
| Constructor and Description |
|---|
AnalyzeTextOptions(String text,
LexicalAnalyzerName analyzerName)
Constructor to
AnalyzeTextOptions which takes analyzerName. |
AnalyzeTextOptions(String text,
LexicalTokenizerName tokenizerName)
Constructor to
AnalyzeTextOptions which takes tokenizerName. |
| Modifier and Type | Method and Description |
|---|---|
LexicalAnalyzerName |
getAnalyzerName()
Get the analyzer 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.
|
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 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. If this parameter is not specified, you must specify a
tokenizer instead. The tokenizer and analyzer parameters are mutually
exclusive. Possible values include: 'ArMicrosoft', 'ArLucene',
'HyLucene', 'BnMicrosoft', 'EuLucene', 'BgMicrosoft', 'BgLucene',
'CaMicrosoft', 'CaLucene', 'ZhHansMicrosoft', 'ZhHansLucene',
'ZhHantMicrosoft', 'ZhHantLucene', 'HrMicrosoft', 'CsMicrosoft',
'CsLucene', 'DaMicrosoft', 'DaLucene', 'NlMicrosoft', 'NlLucene',
'EnMicrosoft', 'EnLucene', 'EtMicrosoft', 'FiMicrosoft', 'FiLucene',
'FrMicrosoft', 'FrLucene', 'GlLucene', 'DeMicrosoft', 'DeLucene',
'ElMicrosoft', 'ElLucene', 'GuMicrosoft', 'HeMicrosoft', 'HiMicrosoft',
'HiLucene', 'HuMicrosoft', 'HuLucene', 'IsMicrosoft', 'IdMicrosoft',
'IdLucene', 'GaLucene', 'ItMicrosoft', 'ItLucene', 'JaMicrosoft',
'JaLucene', 'KnMicrosoft', 'KoMicrosoft', 'KoLucene', 'LvMicrosoft',
'LvLucene', 'LtMicrosoft', 'MlMicrosoft', 'MsMicrosoft', 'MrMicrosoft',
'NbMicrosoft', 'NoLucene', 'FaLucene', 'PlMicrosoft', 'PlLucene',
'PtBrMicrosoft', 'PtBrLucene', 'PtPtMicrosoft', 'PtPtLucene',
'PaMicrosoft', 'RoMicrosoft', 'RoLucene', 'RuMicrosoft', 'RuLucene',
'SrCyrillicMicrosoft', 'SrLatinMicrosoft', 'SkMicrosoft', 'SlMicrosoft',
'EsMicrosoft', 'EsLucene', 'SvMicrosoft', 'SvLucene', 'TaMicrosoft',
'TeMicrosoft', 'ThMicrosoft', 'ThLucene', 'TrMicrosoft', 'TrLucene',
'UkMicrosoft', 'UrMicrosoft', 'ViMicrosoft', 'StandardLucene',
'StandardAsciiFoldingLucene', 'Keyword', 'Pattern', 'Simple', 'Stop',
'Whitespace'.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. If this parameter is not specified, you must specify an
analyzer instead. The tokenizer and analyzer parameters are mutually
exclusive. Possible values include: 'Classic', 'EdgeNGram', 'Keyword',
'Letter', 'Lowercase', 'MicrosoftLanguageTokenizer',
'MicrosoftLanguageStemmingTokenizer', 'NGram', 'PathHierarchy',
'Pattern', 'Standard', 'UaxUrlEmail', 'Whitespace'.public String getText()
public LexicalAnalyzerName getAnalyzerName()
public LexicalTokenizerName getTokenizerName()
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 © 2020 Microsoft Corporation. All rights reserved.