TextClassification¶
- class oci.ai_language.models.TextClassification(**kwargs)¶
Bases:
objectText label and score for the given text.
Methods:
__init__(**kwargs)Initializes a new TextClassification object with values from keyword arguments.
Attributes:
[Required] Gets the label of this TextClassification.
[Required] Gets the score of this TextClassification.
- __init__(**kwargs)¶
Initializes a new TextClassification object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
label (str) – The value to assign to the label property of this TextClassification.
score (float) – The value to assign to the score property of this TextClassification.
- property label¶
[Required] Gets the label of this TextClassification. Label of the the given text.
- Returns
The label of this TextClassification.
- Return type
str
- property score¶
[Required] Gets the score of this TextClassification. Score or confidence of extracted text label. Example: 0.9999856066867399
- Returns
The score of this TextClassification.
- Return type
float