MetaInfo¶
- class oci.ai_language.models.MetaInfo(**kwargs)¶
Bases:
objectMetaInfo of entity detected.
Methods:
__init__(**kwargs)Initializes a new MetaInfo object with values from keyword arguments.
Attributes:
Gets the length of this MetaInfo.
Gets the offset of this MetaInfo.
Gets the score of this MetaInfo.
Gets the sub_type of this MetaInfo.
Gets the text of this MetaInfo.
- __init__(**kwargs)¶
Initializes a new MetaInfo object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
offset (int) – The value to assign to the offset property of this MetaInfo.
length (int) – The value to assign to the length property of this MetaInfo.
text (str) – The value to assign to the text property of this MetaInfo.
sub_type (str) – The value to assign to the sub_type property of this MetaInfo.
score (float) – The value to assign to the score property of this MetaInfo.
- property length¶
Gets the length of this MetaInfo. Length of entity text.
- Returns
The length of this MetaInfo.
- Return type
int
- property offset¶
Gets the offset of this MetaInfo. The number of Unicode code points preceding this entity in the submitted text.
- Returns
The offset of this MetaInfo.
- Return type
int
- property score¶
Gets the score of this MetaInfo. Score or confidence for detected entity.
- Returns
The score of this MetaInfo.
- Return type
float
- property sub_type¶
Gets the sub_type of this MetaInfo. Sub-type of entity text like GPE for LOCATION type.
- Returns
The sub_type of this MetaInfo.
- Return type
str
- property text¶
Gets the text of this MetaInfo. Entity text like name of person, location, and so on.
- Returns
The text of this MetaInfo.
- Return type
str