TextDatasetFormatDetails

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

Bases: oci.data_labeling_service_dataplane.models.dataset_format_details.DatasetFormatDetails

It indicates the dataset is comprised of TXT files.

Attributes

FORMAT_TYPE_DOCUMENT str(object=’’) -> str
FORMAT_TYPE_IMAGE str(object=’’) -> str
FORMAT_TYPE_TEXT str(object=’’) -> str
format_type [Required] Gets the format_type of this DatasetFormatDetails.
text_file_type_metadata Gets the text_file_type_metadata of this TextDatasetFormatDetails.

Methods

__init__(**kwargs) Initializes a new TextDatasetFormatDetails 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'
FORMAT_TYPE_IMAGE = 'IMAGE'
FORMAT_TYPE_TEXT = 'TEXT'
__init__(**kwargs)

Initializes a new TextDatasetFormatDetails object with values from keyword arguments. The default value of the format_type attribute of this class is TEXT and it should not be changed. 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 TextDatasetFormatDetails. Allowed values for this property are: “DOCUMENT”, “IMAGE”, “TEXT”
  • text_file_type_metadata (oci.data_labeling_service_dataplane.models.TextFileTypeMetadata) – The value to assign to the text_file_type_metadata property of this TextDatasetFormatDetails.
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.

text_file_type_metadata

Gets the text_file_type_metadata of this TextDatasetFormatDetails.

Returns:The text_file_type_metadata of this TextDatasetFormatDetails.
Return type:oci.data_labeling_service_dataplane.models.TextFileTypeMetadata