Class RuntimeEntity
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class RuntimeEntity
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuntimeEntity.Builder
Builder. -
Method Summary
Modifier and Type Method 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.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a RuntimeEntity builder
-
entity
Gets the entity.An entity detected in the input.
- Returns:
- the entity
-
location
Gets the location.An array of zero-based character offsets that indicate where the detected entity values begin and end in the input text.
- Returns:
- the location
-
value
Gets the value.The term in the input text that was recognized as an entity value.
- Returns:
- the value
-
confidence
Gets the confidence.A decimal percentage that represents Watson's confidence in the recognized entity.
- Returns:
- the confidence
-
metadata
Gets the metadata.**Deprecated.** Any metadata for the entity.
Beginning with the `2021-06-14` API version, the `metadata` property is no longer returned. For information about system entities recognized in the user input, see the `interpretation` property.
- Returns:
- the metadata
-
groups
Gets the groups.The recognized capture groups for the entity, as defined by the entity pattern.
- Returns:
- the groups
-
interpretation
Gets the 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 skill.
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).
- Returns:
- the interpretation
-
alternatives
Gets the 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 skill.
- Returns:
- the alternatives
-
role
Gets the 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 skill.
- Returns:
- the role
-