ruạṛ
a ���f9 � @ 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 @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�Entityz entity object c K sP ddddddd�| _ dddd d dd�| _d| _d| _d| _d| _d| _d| _dS ) 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 ZisPiir N)Z swagger_typesZ attribute_map�_offset�_length�_text�_type�_is_pii�_score)�self�kwargs� r �A/usr/lib/python3.9/site-packages/oci/ai_language/models/entity.py�__init__ s( � � zEntity.__init__c C s | 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 s z Entity.offsetc C s || _ dS )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 s c C s | j S )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 s z Entity.lengthc C s || _ dS )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 s c C s | j S )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 s zEntity.textc C s || _ dS )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 � s c C s | j S )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 � s zEntity.typec C s || _ dS )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 � s c C s | j S )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 � s z Entity.is_piic C s || _ dS )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 � s c C s | j S )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 zEntity.scorec C s || _ dS )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"