TextClassificationDocumentResult¶
-
class
oci.ai_language.models.
TextClassificationDocumentResult
(**kwargs)¶ Bases:
object
The document response for test classification detect call.
Methods
__init__
(**kwargs)Initializes a new TextClassificationDocumentResult object with values from keyword arguments. Attributes
key
[Required] Gets the key of this TextClassificationDocumentResult. language_code
[Required] Gets the language_code of this TextClassificationDocumentResult. text_classification
[Required] Gets the text_classification of this TextClassificationDocumentResult. -
__init__
(**kwargs)¶ Initializes a new TextClassificationDocumentResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - key (str) – The value to assign to the key property of this TextClassificationDocumentResult.
- text_classification (list[oci.ai_language.models.TextClassification]) – The value to assign to the text_classification property of this TextClassificationDocumentResult.
- language_code (str) – The value to assign to the language_code property of this TextClassificationDocumentResult.
-
key
¶ [Required] Gets the key of this TextClassificationDocumentResult. Document Unique Identifier.
Returns: The key of this TextClassificationDocumentResult. Return type: str
-
language_code
¶ [Required] Gets the language_code of this TextClassificationDocumentResult. Language code as per ISO 639-1 standard.
Returns: The language_code of this TextClassificationDocumentResult. Return type: str
-
text_classification
¶ [Required] Gets the text_classification of this TextClassificationDocumentResult. List of detected text classes.
Returns: The text_classification of this TextClassificationDocumentResult. Return type: list[oci.ai_language.models.TextClassification]
-