Class FormWord
java.lang.Object
com.azure.ai.formrecognizer.models.FormElement
com.azure.ai.formrecognizer.models.FormWord
Represents a word recognized from the input document.
-
Constructor Summary
ConstructorDescriptionFormWord
(String text, FieldBoundingBox boundingBox, int pageNumber, float confidence) Constructs a FormWord object. -
Method Summary
Modifier and TypeMethodDescriptionBoundingBox property of the element.float
Gets the confidence property of the Form Word.int
Get the 1-based page number in the input document.getText()
The text content of the form element.
-
Constructor Details
-
FormWord
Constructs a FormWord object.- Parameters:
text
- the text content of recognized field.boundingBox
- the BoundingBox of recognized field.pageNumber
- the 1 based page number.confidence
- the confidence property of the Form Word.
-
-
Method Details
-
getConfidence
public float getConfidence()Gets the confidence property of the Form Word.- Returns:
- the confidence property of the Form Word.
-
getBoundingBox
BoundingBox property of the element.- Overrides:
getBoundingBox
in classFormElement
- Returns:
- the bounding box of the element.
-
getText
The text content of the form element.- Overrides:
getText
in classFormElement
- Returns:
- The text content of the form element.
-
getPageNumber
public int getPageNumber()Get the 1-based page number in the input document.- Overrides:
getPageNumber
in classFormElement
- Returns:
- the page number value.
-