EntityDocument¶
-
class
oci.ai_language.models.
EntityDocument
(**kwargs)¶ Bases:
object
The document details for entities detect call.
Methods
__init__
(**kwargs)Initializes a new EntityDocument object with values from keyword arguments. Attributes
key
[Required] Gets the key of this EntityDocument. language_code
Gets the language_code of this EntityDocument. text
[Required] Gets the text of this EntityDocument. -
__init__
(**kwargs)¶ Initializes a new EntityDocument object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - key (str) – The value to assign to the key property of this EntityDocument.
- text (str) – The value to assign to the text property of this EntityDocument.
- language_code (str) – The value to assign to the language_code property of this EntityDocument.
-
key
¶ [Required] Gets the key of this EntityDocument. Document unique identifier defined by the user.
Returns: The key of this EntityDocument. Return type: str
-
language_code
¶ Gets the language_code of this EntityDocument. Language code as per ISO 639-1 standard.
Returns: The language_code of this EntityDocument. Return type: str
-
text
¶ [Required] Gets the text of this EntityDocument. Document text for detect entities.
Returns: The text of this EntityDocument. Return type: str
-