KeyPhraseDocument¶
-
class
oci.ai_language.models.
KeyPhraseDocument
(**kwargs)¶ Bases:
object
The document details for keyPhrases detect call.
Methods
__init__
(**kwargs)Initializes a new KeyPhraseDocument object with values from keyword arguments. Attributes
key
[Required] Gets the key of this KeyPhraseDocument. language_code
Gets the language_code of this KeyPhraseDocument. text
[Required] Gets the text of this KeyPhraseDocument. -
__init__
(**kwargs)¶ Initializes a new KeyPhraseDocument 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 KeyPhraseDocument.
- text (str) – The value to assign to the text property of this KeyPhraseDocument.
- language_code (str) – The value to assign to the language_code property of this KeyPhraseDocument.
-
key
¶ [Required] Gets the key of this KeyPhraseDocument. Document Unique Identifier.
Returns: The key of this KeyPhraseDocument. Return type: str
-
language_code
¶ Gets the language_code of this KeyPhraseDocument. Language code as per ISO 639-1 standard..
Returns: The language_code of this KeyPhraseDocument. Return type: str
-
text
¶ [Required] Gets the text of this KeyPhraseDocument. Document text for detect keyPhrases.
Returns: The text of this KeyPhraseDocument. Return type: str
-