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 | Method and Description |
---|---|
TokenDictRule.Builder |
newBuilder()
New builder.
|
String |
partOfSpeech()
Gets the partOfSpeech.
|
List<String> |
readings()
Gets the readings.
|
String |
text()
Gets the text.
|
List<String> |
tokens()
Gets the tokens.
|
public TokenDictRule.Builder newBuilder()
public String text()
The string to tokenize.
public List<String> tokens()
Array of tokens that the `text` field is split into when found.
public List<String> readings()
Array of tokens that represent the content of the `text` field in an alternate character set.
public String partOfSpeech()
The part of speech that the `text` string belongs to. For example `noun`. Custom parts of speech can be specified.
Copyright © 2023 IBM Cloud. All rights reserved.