Word

class oci.ai_document.models.Word(**kwargs)

Bases: object

A single word.

Methods

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

Attributes

bounding_polygon [Required] Gets the bounding_polygon of this Word.
confidence [Required] Gets the confidence of this Word.
text [Required] Gets the text of this Word.
__init__(**kwargs)

Initializes a new Word 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 Word.
  • confidence (float) – The value to assign to the confidence property of this Word.
  • bounding_polygon (oci.ai_document.models.BoundingPolygon) – The value to assign to the bounding_polygon property of this Word.
bounding_polygon

[Required] Gets the bounding_polygon of this Word.

Returns:The bounding_polygon of this Word.
Return type:oci.ai_document.models.BoundingPolygon
confidence

[Required] Gets the confidence of this Word. the confidence score between 0 and 1.

Returns:The confidence of this Word.
Return type:float
text

[Required] Gets the text of this Word. The string of text characters in the word.

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