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 | Method and Description |
---|---|
List<RuntimeEntityAlternative> |
alternatives()
Gets the alternatives.
|
Double |
confidence()
Gets the confidence.
|
String |
entity()
Gets the entity.
|
List<CaptureGroup> |
groups()
Gets the groups.
|
RuntimeEntityInterpretation |
interpretation()
Gets the interpretation.
|
List<Long> |
location()
Gets the location.
|
Map<String,Object> |
metadata()
Gets the metadata.
|
RuntimeEntity.Builder |
newBuilder()
New builder.
|
RuntimeEntityRole |
role()
Gets the role.
|
String |
value()
Gets the value.
|
public RuntimeEntity.Builder newBuilder()
public String entity()
An entity detected in the input.
public List<Long> location()
An array of zero-based character offsets that indicate where the detected entity values begin and end in the input text.
public String value()
The entity value that was recognized in the user input.
public Double confidence()
A decimal percentage that represents Watson's confidence in the recognized entity.
public Map<String,Object> metadata()
Any metadata for the entity.
public 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.
For more information about how system entities are interpreted, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-system-entities).
public 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.
Copyright © 2021 IBM Cloud. All rights reserved.