ResolvedEntity

class oci.ai_language.models.ResolvedEntity(**kwargs)

Bases: object

Resolved entity.

Methods

__init__(**kwargs) Initializes a new ResolvedEntity object with values from keyword arguments.

Attributes

id [Required] Gets the id of this ResolvedEntity.
length [Required] Gets the length of this ResolvedEntity.
offset [Required] Gets the offset of this ResolvedEntity.
text [Required] Gets the text of this ResolvedEntity.
type [Required] Gets the type of this ResolvedEntity.
value [Required] Gets the value of this ResolvedEntity.
__init__(**kwargs)

Initializes a new ResolvedEntity object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this ResolvedEntity.
  • offset (int) – The value to assign to the offset property of this ResolvedEntity.
  • length (int) – The value to assign to the length property of this ResolvedEntity.
  • text (str) – The value to assign to the text property of this ResolvedEntity.
  • type (str) – The value to assign to the type property of this ResolvedEntity.
  • value (dict(str, str)) – The value to assign to the value property of this ResolvedEntity.
id

[Required] Gets the id of this ResolvedEntity. id of the resolved entity in input

Returns:The id of this ResolvedEntity.
Return type:str
length

[Required] Gets the length of this ResolvedEntity. length of resolved entity in input

Returns:The length of this ResolvedEntity.
Return type:int
offset

[Required] Gets the offset of this ResolvedEntity. offset of resolved entity in input

Returns:The offset of this ResolvedEntity.
Return type:int
text

[Required] Gets the text of this ResolvedEntity. Entity text like name of person, location, and so on.

Returns:The text of this ResolvedEntity.
Return type:str
type

[Required] Gets the type of this ResolvedEntity. Type of entity text like PER, LOC.

Returns:The type of this ResolvedEntity.
Return type:str
value

[Required] Gets the value of this ResolvedEntity. key and value pair for resolved entities. keys can be specific for each type of resolved entity. Values can be instances of resolvedEntity, arrays of resolvedEntities, primitives, or custom JSON.

Returns:The value of this ResolvedEntity.
Return type:dict(str, str)