class Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord

Model object.

Attributes

entity_type_score[RW]

@return [Float] (optional) If an entity type is recognized, a decimal number denoting the confidence level of the entity type will be returned.

length[RW]

@return [Integer] Length (in Unicode characters) for the entity match text.

offset[RW]

@return [Integer] Start position (in Unicode characters) for the entity match text.

text[RW]

@return [String] Entity text as appears in the request.

wikipedia_score[RW]

@return [Float] (optional) If a well-known item with Wikipedia link is recognized, a decimal number denoting the confidence level of the Wikipedia info will be returned.

Public Class Methods

mapper() click to toggle source

Mapper for MatchRecord class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/match_record.rb, line 42
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MatchRecord',
    type: {
      name: 'Composite',
      class_name: 'MatchRecord',
      model_properties: {
        wikipedia_score: {
          client_side_validation: true,
          required: false,
          serialized_name: 'wikipediaScore',
          type: {
            name: 'Double'
          }
        },
        entity_type_score: {
          client_side_validation: true,
          required: false,
          serialized_name: 'entityTypeScore',
          type: {
            name: 'Double'
          }
        },
        text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'text',
          type: {
            name: 'String'
          }
        },
        offset: {
          client_side_validation: true,
          required: false,
          serialized_name: 'offset',
          type: {
            name: 'Number'
          }
        },
        length: {
          client_side_validation: true,
          required: false,
          serialized_name: 'length',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end