public class TokenDictRule
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
TokenDictRule.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
partOfSpeech |
protected java.util.List<java.lang.String> |
readings |
protected java.lang.String |
text |
protected java.util.List<java.lang.String> |
tokens |
Modifier | Constructor and Description |
---|---|
protected |
TokenDictRule(TokenDictRule.Builder builder) |
Modifier and Type | Method and Description |
---|---|
TokenDictRule.Builder |
newBuilder()
New builder.
|
java.lang.String |
partOfSpeech()
Gets the partOfSpeech.
|
java.util.List<java.lang.String> |
readings()
Gets the readings.
|
java.lang.String |
text()
Gets the text.
|
java.util.List<java.lang.String> |
tokens()
Gets the tokens.
|
protected java.lang.String text
protected java.util.List<java.lang.String> tokens
protected java.util.List<java.lang.String> readings
@SerializedName(value="part_of_speech") protected java.lang.String partOfSpeech
protected TokenDictRule(TokenDictRule.Builder builder)
public TokenDictRule.Builder newBuilder()
public java.lang.String text()
The string to tokenize.
public java.util.List<java.lang.String> tokens()
Array of tokens that the `text` field is split into when found.
public java.util.List<java.lang.String> readings()
Array of tokens that represent the content of the `text` field in an alternate character set.
public java.lang.String partOfSpeech()
The part of speech that the `text` string belongs to. For example `noun`. Custom parts of speech can be specified.