KeyPhrase

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

Bases: object

Key phrase and score for the given text.

Methods

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

Attributes

score [Required] Gets the score of this KeyPhrase.
text [Required] Gets the text of this KeyPhrase.
__init__(**kwargs)

Initializes a new KeyPhrase object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • text (str) – The value to assign to the text property of this KeyPhrase.
  • score (float) – The value to assign to the score property of this KeyPhrase.
score

[Required] Gets the score of this KeyPhrase. Score of the given key phrase.

Returns:The score of this KeyPhrase.
Return type:float
text

[Required] Gets the text of this KeyPhrase. Key phrase of the the given text.

Returns:The text of this KeyPhrase.
Return type:str