class Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedToken
Canonical representation of single extracted text.
Attributes
bounding_box[RW]
@return [Array<Float>] Bounding box of the extracted text. Represents the location of the extracted text as a pair of cartesian co-ordinates. The co-ordinate pairs are arranged by top-left, top-right, bottom-right and bottom-left endpoints box with origin reference from the bottom-left of the page.
confidence[RW]
@return [Float] A measure of accuracy of the extracted text.
text[RW]
@return [String] String value of the extracted text.
Private Class Methods
mapper()
click to toggle source
Mapper for ExtractedToken
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0-preview/generated/azure_cognitiveservices_formrecognizer/models/extracted_token.rb, line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ExtractedToken', type: { name: 'Composite', class_name: 'ExtractedToken', model_properties: { text: { client_side_validation: true, required: false, serialized_name: 'text', type: { name: 'String' } }, bounding_box: { client_side_validation: true, required: false, serialized_name: 'boundingBox', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'FloatElementType', type: { name: 'Double' } } } }, confidence: { client_side_validation: true, required: false, serialized_name: 'confidence', type: { name: 'Double' } } } } } end