public class RuntimeEntity
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeEntity.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<RuntimeEntityAlternative> |
alternatives |
protected java.lang.Double |
confidence |
protected java.lang.String |
entity |
protected java.util.List<CaptureGroup> |
groups |
protected RuntimeEntityInterpretation |
interpretation |
protected java.util.List<java.lang.Long> |
location |
protected java.util.Map<java.lang.String,java.lang.Object> |
metadata |
protected RuntimeEntityRole |
role |
protected java.lang.String |
value |
Modifier | Constructor and Description |
---|---|
protected |
RuntimeEntity(RuntimeEntity.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.util.List<RuntimeEntityAlternative> |
alternatives()
Gets the alternatives.
|
java.lang.Double |
confidence()
Gets the confidence.
|
java.lang.String |
entity()
Gets the entity.
|
java.util.List<CaptureGroup> |
groups()
Gets the groups.
|
RuntimeEntityInterpretation |
interpretation()
Gets the interpretation.
|
java.util.List<java.lang.Long> |
location()
Gets the location.
|
java.util.Map<java.lang.String,java.lang.Object> |
metadata()
Gets the metadata.
|
RuntimeEntity.Builder |
newBuilder()
New builder.
|
RuntimeEntityRole |
role()
Gets the role.
|
java.lang.String |
value()
Gets the value.
|
protected java.lang.String entity
protected java.util.List<java.lang.Long> location
protected java.lang.String value
protected java.lang.Double confidence
protected java.util.Map<java.lang.String,java.lang.Object> metadata
protected java.util.List<CaptureGroup> groups
protected RuntimeEntityInterpretation interpretation
protected java.util.List<RuntimeEntityAlternative> alternatives
protected RuntimeEntityRole role
protected RuntimeEntity(RuntimeEntity.Builder builder)
public RuntimeEntity.Builder newBuilder()
public java.lang.String entity()
An entity detected in the input.
public java.util.List<java.lang.Long> location()
An array of zero-based character offsets that indicate where the detected entity values begin and end in the input text.
public java.lang.String value()
The entity value that was recognized in the user input.
public java.lang.Double confidence()
A decimal percentage that represents Watson's confidence in the recognized entity.
public java.util.Map<java.lang.String,java.lang.Object> metadata()
Any metadata for the entity.
public java.util.List<CaptureGroup> groups()
The recognized capture groups for the entity, as defined by the entity pattern.
public RuntimeEntityInterpretation interpretation()
An object containing detailed information about the entity recognized in the user input. This property is included only if the new system entities are enabled for the workspace.
For more information about how the new system entities are interpreted, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-beta-system-entities).
public java.util.List<RuntimeEntityAlternative> alternatives()
An array of possible alternative values that the user might have intended instead of the value returned in the **value** property. This property is returned only for `@sys-time` and `@sys-date` entities when the user's input is ambiguous.
This property is included only if the new system entities are enabled for the workspace.
public RuntimeEntityRole role()
An object describing the role played by a system entity that is specifies the beginning or end of a range recognized in the user input. This property is included only if the new system entities are enabled for the workspace.