public final class PatternAnalyzer extends LexicalAnalyzer
Constructor and Description |
---|
PatternAnalyzer(String name)
Creates an instance of PatternAnalyzer class.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
areLowerCaseTerms()
Get the lowerCaseTerms property: A value indicating whether terms should be lower-cased.
|
List<RegexFlags> |
getFlags()
Get the flags property: Regular expression flags.
|
String |
getPattern()
Get the pattern property: A regular expression pattern to match token separators.
|
List<String> |
getStopwords()
Get the stopwords property: A list of stopwords.
|
PatternAnalyzer |
setFlags(List<RegexFlags> flags)
Set the flags property: Regular expression flags.
|
PatternAnalyzer |
setFlags(RegexFlags... flags)
Set the flags property: Regular expression flags.
|
PatternAnalyzer |
setLowerCaseTerms(Boolean lowerCaseTerms)
Set the lowerCaseTerms property: A value indicating whether terms should be lower-cased.
|
PatternAnalyzer |
setPattern(String pattern)
Set the pattern property: A regular expression pattern to match token separators.
|
PatternAnalyzer |
setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords.
|
PatternAnalyzer |
setStopwords(String... stopwords)
Set the stopwords property: A list of stopwords.
|
getName
public PatternAnalyzer(String name)
name
- the name value to set.public Boolean areLowerCaseTerms()
public PatternAnalyzer setLowerCaseTerms(Boolean lowerCaseTerms)
lowerCaseTerms
- the lowerCaseTerms value to set.public String getPattern()
public PatternAnalyzer setPattern(String pattern)
pattern
- the pattern value to set.public List<RegexFlags> getFlags()
public PatternAnalyzer setFlags(List<RegexFlags> flags)
flags
- the flags value to set.public List<String> getStopwords()
public PatternAnalyzer setStopwords(List<String> stopwords)
stopwords
- the stopwords value to set.public PatternAnalyzer setStopwords(String... stopwords)
stopwords
- the stopwords value to set.public PatternAnalyzer setFlags(RegexFlags... flags)
flags
- the flags value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.