TextClassificationDocument

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

Bases: object

The document details for test classification detect call.

Methods

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

Attributes

key [Required] Gets the key of this TextClassificationDocument.
language_code Gets the language_code of this TextClassificationDocument.
text [Required] Gets the text of this TextClassificationDocument.
__init__(**kwargs)

Initializes a new TextClassificationDocument 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 TextClassificationDocument.
  • text (str) – The value to assign to the text property of this TextClassificationDocument.
  • language_code (str) – The value to assign to the language_code property of this TextClassificationDocument.
key

[Required] Gets the key of this TextClassificationDocument. Document Unique Identifier.

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

Gets the language_code of this TextClassificationDocument. Language code as per ISO 639-1 standard.

Returns:The language_code of this TextClassificationDocument.
Return type:str
text

[Required] Gets the text of this TextClassificationDocument. Document text for detect text classification.

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