DatasetFormatDetails

class oci.data_labeling_service_dataplane.models.DatasetFormatDetails(**kwargs)

Bases: object

It specifies how to process the data. Supported formats include DOCUMENT, IMAGE, and TEXT.

Attributes

FORMAT_TYPE_DOCUMENT A constant which can be used with the format_type property of a DatasetFormatDetails.
FORMAT_TYPE_IMAGE A constant which can be used with the format_type property of a DatasetFormatDetails.
FORMAT_TYPE_TEXT A constant which can be used with the format_type property of a DatasetFormatDetails.
format_type [Required] Gets the format_type of this DatasetFormatDetails.

Methods

__init__(**kwargs) Initializes a new DatasetFormatDetails 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.
FORMAT_TYPE_DOCUMENT = 'DOCUMENT'

A constant which can be used with the format_type property of a DatasetFormatDetails. This constant has a value of “DOCUMENT”

FORMAT_TYPE_IMAGE = 'IMAGE'

A constant which can be used with the format_type property of a DatasetFormatDetails. This constant has a value of “IMAGE”

FORMAT_TYPE_TEXT = 'TEXT'

A constant which can be used with the format_type property of a DatasetFormatDetails. This constant has a value of “TEXT”

__init__(**kwargs)

Initializes a new DatasetFormatDetails 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:format_type (str) – The value to assign to the format_type property of this DatasetFormatDetails. Allowed values for this property are: “DOCUMENT”, “IMAGE”, “TEXT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
format_type

[Required] Gets the format_type of this DatasetFormatDetails. The format type. DOCUMENT format is for record contents that are PDFs or TIFFs. IMAGE format is for record contents that are JPEGs or PNGs. TEXT format is for record contents that are TXT files.

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

Returns:The format_type of this DatasetFormatDetails.
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.