ruạṛ
a M��fm � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sj e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zedd� �Z e jd d� �Z dd� Zdd� Zdd� ZdS )�DocumentFeaturez( The type of document analysis. �LANGUAGE_CLASSIFICATION�TEXT_EXTRACTION�TABLE_EXTRACTION�KEY_VALUE_EXTRACTION�DOCUMENT_CLASSIFICATIONc K s ddi| _ ddi| _d| _dS )a� Initializes a new DocumentFeature 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: * :class:`~oci.ai_document.models.DocumentClassificationFeature` * :class:`~oci.ai_document.models.DocumentKeyValueExtractionFeature` * :class:`~oci.ai_document.models.DocumentLanguageClassificationFeature` * :class:`~oci.ai_document.models.DocumentTextExtractionFeature` * :class:`~oci.ai_document.models.DocumentTableExtractionFeature` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param feature_type: The value to assign to the feature_type property of this DocumentFeature. Allowed values for this property are: "LANGUAGE_CLASSIFICATION", "TEXT_EXTRACTION", "TABLE_EXTRACTION", "KEY_VALUE_EXTRACTION", "DOCUMENT_CLASSIFICATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type feature_type: str �feature_type�str�featureTypeN)� swagger_types� attribute_map� _feature_type)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/ai_document/models/document_feature.py�__init__$ s ��zDocumentFeature.__init__c C sL | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS dS d S )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r �DocumentClassificationFeaturer �!DocumentKeyValueExtractionFeaturer �%DocumentLanguageClassificationFeaturer �DocumentTextExtractionFeaturer �DocumentTableExtractionFeaturer Nr )�object_dictionary�typer r r �get_subtypeB s zDocumentFeature.get_subtypec C s | j S )a, **[Required]** Gets the feature_type of this DocumentFeature. The type of document analysis requested. The allowed values are: - `LANGUAGE_CLASSIFICATION`: Detect the language. - `TEXT_EXTRACTION`: Recognize text. - `TABLE_EXTRACTION`: Detect and extract data in tables. - `KEY_VALUE_EXTRACTION`: Extract form fields. - `DOCUMENT_CLASSIFICATION`: Identify the type of document. Allowed values for this property are: "LANGUAGE_CLASSIFICATION", "TEXT_EXTRACTION", "TABLE_EXTRACTION", "KEY_VALUE_EXTRACTION", "DOCUMENT_CLASSIFICATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The feature_type of this DocumentFeature. :rtype: str )r �r r r r r [ s zDocumentFeature.feature_typec C s g d�}t ||�sd}|| _dS )a Sets the feature_type of this DocumentFeature. The type of document analysis requested. The allowed values are: - `LANGUAGE_CLASSIFICATION`: Detect the language. - `TEXT_EXTRACTION`: Recognize text. - `TABLE_EXTRACTION`: Detect and extract data in tables. - `KEY_VALUE_EXTRACTION`: Extract form fields. - `DOCUMENT_CLASSIFICATION`: Identify the type of document. :param feature_type: The feature_type of this DocumentFeature. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r p s c C s t | �S �N)r r r r r �__repr__� s zDocumentFeature.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDocumentFeature.__eq__c C s | |k S r"