ClassificationType

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

Bases: object

possible text classification modes

Attributes

CLASSIFICATION_MODE_MULTI_CLASS A constant which can be used with the classification_mode property of a ClassificationType.
CLASSIFICATION_MODE_MULTI_LABEL A constant which can be used with the classification_mode property of a ClassificationType.
classification_mode [Required] Gets the classification_mode of this ClassificationType.

Methods

__init__(**kwargs) Initializes a new ClassificationType object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
CLASSIFICATION_MODE_MULTI_CLASS = 'MULTI_CLASS'

A constant which can be used with the classification_mode property of a ClassificationType. This constant has a value of “MULTI_CLASS”

CLASSIFICATION_MODE_MULTI_LABEL = 'MULTI_LABEL'

A constant which can be used with the classification_mode property of a ClassificationType. This constant has a value of “MULTI_LABEL”

__init__(**kwargs)

Initializes a new ClassificationType object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:classification_mode (str) – The value to assign to the classification_mode property of this ClassificationType. Allowed values for this property are: “MULTI_CLASS”, “MULTI_LABEL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
classification_mode

[Required] Gets the classification_mode of this ClassificationType. classification Modes

Allowed values for this property are: “MULTI_CLASS”, “MULTI_LABEL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The classification_mode of this ClassificationType.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.