o
    ɶd9                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s   e Zd ZdZdd Zedd Zejdd Zedd Zejd	d Zed
d Z	e	jdd Z	edd Z
e
jdd Z
edd Zejdd Zedd Zejdd Zdd Zdd Zdd ZdS )Entityz
    entity object
    c                 K   sP   ddddddd| _ dddd	d
dd| _d| _d| _d| _d| _d| _d| _dS )a  
        Initializes a new Entity object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param offset:
            The value to assign to the offset property of this Entity.
        :type offset: int

        :param length:
            The value to assign to the length property of this Entity.
        :type length: int

        :param text:
            The value to assign to the text property of this Entity.
        :type text: str

        :param type:
            The value to assign to the type property of this Entity.
        :type type: str

        :param is_pii:
            The value to assign to the is_pii property of this Entity.
        :type is_pii: bool

        :param score:
            The value to assign to the score property of this Entity.
        :type score: float

        intstrboolfloat)offsetlengthtexttypeis_piiscorer   r   r   r   ZisPiir   N)Zswagger_typesZattribute_map_offset_length_text_type_is_pii_score)selfkwargs r   Ausr/lib/python3.10/site-packages/oci/ai_language/models/entity.py__init__   s(   
	
zEntity.__init__c                 C      | j S )z
        Gets the offset of this Entity.
        The number of Unicode code points preceding this entity in the submitted text.


        :return: The offset of this Entity.
        :rtype: int
        r   r   r   r   r   r   I      
zEntity.offsetc                 C   
   || _ dS )z
        Sets the offset of this Entity.
        The number of Unicode code points preceding this entity in the submitted text.


        :param offset: The offset of this Entity.
        :type: int
        Nr   )r   r   r   r   r   r   U      

c                 C   r   )z
        Gets the length of this Entity.
        Length of entity text


        :return: The length of this Entity.
        :rtype: int
        r   r   r   r   r   r   a   r   zEntity.lengthc                 C   r    )z
        Sets the length of this Entity.
        Length of entity text


        :param length: The length of this Entity.
        :type: int
        Nr"   )r   r   r   r   r   r   m   r!   c                 C   r   )z
        Gets the text of this Entity.
        Entity text like name of person, location, and so on.


        :return: The text of this Entity.
        :rtype: str
        r   r   r   r   r   r   y   r   zEntity.textc                 C   r    )z
        Sets the text of this Entity.
        Entity text like name of person, location, and so on.


        :param text: The text of this Entity.
        :type: str
        Nr#   )r   r   r   r   r   r      r!   c                 C   r   )z
        Gets the type of this Entity.
        Type of entity text like PER, LOC, GPE and NOPE.


        :return: The type of this Entity.
        :rtype: str
        r   r   r   r   r   r      r   zEntity.typec                 C   r    )z
        Sets the type of this Entity.
        Type of entity text like PER, LOC, GPE and NOPE.


        :param type: The type of this Entity.
        :type: str
        Nr$   )r   r   r   r   r   r      r!   c                 C   r   )z
        Gets the is_pii of this Entity.
        This flag is to indicate if it is PII entity or not.


        :return: The is_pii of this Entity.
        :rtype: bool
        r   r   r   r   r   r      r   zEntity.is_piic                 C   r    )z
        Sets the is_pii of this Entity.
        This flag is to indicate if it is PII entity or not.


        :param is_pii: The is_pii of this Entity.
        :type: bool
        Nr%   )r   r   r   r   r   r      r!   c                 C   r   )z
        Gets the score of this Entity.
        Score or confidence of extracted entity type.
        Example: `0.9999856066867399`


        :return: The score of this Entity.
        :rtype: float
        r   r   r   r   r   r      s   zEntity.scorec                 C   r    )z
        Sets the score of this Entity.
        Score or confidence of extracted entity type.
        Example: `0.9999856066867399`


        :param score: The score of this Entity.
        :type: float
        Nr&   )r   r   r   r   r   r      s   
c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zEntity.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zEntity.__eq__c                 C   s
   | |k S r'   r   r*   r   r   r   __ne__   s   
zEntity.__ne__N)__name__
__module____qualname____doc__r   propertyr   setterr   r   r   r   r   r(   r,   r-   r   r   r   r   r      s<    7











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   