KeyPhrase¶
-
class
oci.ai_language.models.
KeyPhrase
(**kwargs)¶ Bases:
object
Key phrase 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 or confidence of the key phrase. Example: 0.9999856066867399
Returns: The score of this KeyPhrase. Return type: float
-
text
¶ [Required] Gets the text of this KeyPhrase. Key phrase exreacted from given text.
Returns: The text of this KeyPhrase. Return type: str
-