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 defined by the user.

Returns:The key of this TextClassificationDocumentResult.
Return type:str
language_code

[Required] Gets the language_code of this TextClassificationDocumentResult. Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew

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]