public static class TokenDictRule.Builder
extends java.lang.Object
Constructor and Description |
---|
TokenDictRule.Builder()
Instantiates a new builder.
|
TokenDictRule.Builder(java.lang.String text,
java.util.List<java.lang.String> tokens,
java.lang.String partOfSpeech)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TokenDictRule.Builder |
addReadings(java.lang.String readings)
Adds an readings to readings.
|
TokenDictRule.Builder |
addTokens(java.lang.String tokens)
Adds an tokens to tokens.
|
TokenDictRule |
build()
Builds a TokenDictRule.
|
TokenDictRule.Builder |
partOfSpeech(java.lang.String partOfSpeech)
Set the partOfSpeech.
|
TokenDictRule.Builder |
readings(java.util.List<java.lang.String> readings)
Set the readings.
|
TokenDictRule.Builder |
text(java.lang.String text)
Set the text.
|
TokenDictRule.Builder |
tokens(java.util.List<java.lang.String> tokens)
Set the tokens.
|
public TokenDictRule.Builder()
public TokenDictRule.Builder(java.lang.String text, java.util.List<java.lang.String> tokens, java.lang.String partOfSpeech)
text
- the texttokens
- the tokenspartOfSpeech
- the partOfSpeechpublic TokenDictRule build()
public TokenDictRule.Builder addTokens(java.lang.String tokens)
tokens
- the new tokenspublic TokenDictRule.Builder addReadings(java.lang.String readings)
readings
- the new readingspublic TokenDictRule.Builder text(java.lang.String text)
text
- the textpublic TokenDictRule.Builder tokens(java.util.List<java.lang.String> tokens)
tokens
- the tokenspublic TokenDictRule.Builder readings(java.util.List<java.lang.String> readings)
readings
- the readingspublic TokenDictRule.Builder partOfSpeech(java.lang.String partOfSpeech)
partOfSpeech
- the partOfSpeech