public final class DictionaryDecompounderTokenFilter extends TokenFilter
Constructor and Description |
---|
DictionaryDecompounderTokenFilter(String name,
List<String> wordList)
Constructor of
TokenFilter . |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxSubwordSize()
Get the maxSubwordSize property: The maximum subword size.
|
Integer |
getMinSubwordSize()
Get the minSubwordSize property: The minimum subword size.
|
Integer |
getMinWordSize()
Get the minWordSize property: The minimum word size.
|
List<String> |
getWordList()
Get the wordList property: The list of words to match against.
|
Boolean |
isOnlyLongestMatched()
Get the onlyLongestMatch property: A value indicating whether to add
only the longest matching subword to the output.
|
DictionaryDecompounderTokenFilter |
setMaxSubwordSize(Integer maxSubwordSize)
Set the maxSubwordSize property: The maximum subword size.
|
DictionaryDecompounderTokenFilter |
setMinSubwordSize(Integer minSubwordSize)
Set the minSubwordSize property: The minimum subword size.
|
DictionaryDecompounderTokenFilter |
setMinWordSize(Integer minWordSize)
Set the minWordSize property: The minimum word size.
|
DictionaryDecompounderTokenFilter |
setOnlyLongestMatched(Boolean onlyLongestMatched)
Set the onlyLongestMatch property: A value indicating whether to add
only the longest matching subword to the output.
|
getName
public DictionaryDecompounderTokenFilter(String name, List<String> wordList)
TokenFilter
.name
- The name of the token filter. It must only contain letters, digits,
spaces, dashes or underscores, can only start and end with alphanumeric
characters, and is limited to 128 characters.wordList
- The list of words to match against.public List<String> getWordList()
public Integer getMinWordSize()
public DictionaryDecompounderTokenFilter setMinWordSize(Integer minWordSize)
minWordSize
- the minWordSize value to set.public Integer getMinSubwordSize()
public DictionaryDecompounderTokenFilter setMinSubwordSize(Integer minSubwordSize)
minSubwordSize
- the minSubwordSize value to set.public Integer getMaxSubwordSize()
public DictionaryDecompounderTokenFilter setMaxSubwordSize(Integer maxSubwordSize)
maxSubwordSize
- the maxSubwordSize value to set.public Boolean isOnlyLongestMatched()
public DictionaryDecompounderTokenFilter setOnlyLongestMatched(Boolean onlyLongestMatched)
onlyLongestMatched
- the onlyLongestMatch value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.