KeyPhraseDocumentResult

class oci.ai_language.models.KeyPhraseDocumentResult(**kwargs)

Bases: object

The document response for keyPhrases detect call.

Methods

__init__(**kwargs) Initializes a new KeyPhraseDocumentResult object with values from keyword arguments.

Attributes

key [Required] Gets the key of this KeyPhraseDocumentResult.
key_phrases [Required] Gets the key_phrases of this KeyPhraseDocumentResult.
language_code [Required] Gets the language_code of this KeyPhraseDocumentResult.
__init__(**kwargs)

Initializes a new KeyPhraseDocumentResult 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 KeyPhraseDocumentResult.
  • key_phrases (list[oci.ai_language.models.KeyPhrase]) – The value to assign to the key_phrases property of this KeyPhraseDocumentResult.
  • language_code (str) – The value to assign to the language_code property of this KeyPhraseDocumentResult.
key

[Required] Gets the key of this KeyPhraseDocumentResult. Document Unique Identifier.

Returns:The key of this KeyPhraseDocumentResult.
Return type:str
key_phrases

[Required] Gets the key_phrases of this KeyPhraseDocumentResult. List of detected keyPhrases.

Returns:The key_phrases of this KeyPhraseDocumentResult.
Return type:list[oci.ai_language.models.KeyPhrase]
language_code

[Required] Gets the language_code of this KeyPhraseDocumentResult. Language code as per ISO 639-1 standard.

Returns:The language_code of this KeyPhraseDocumentResult.
Return type:str