Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::EntityLabelObject

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb

Overview

Defines the entity type and position of the extracted entity within the example.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_char_indexInteger

entity ends.

Returns:

  • (Integer)

    The index within the utterance where the extracted



25
26
27
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb', line 25

def end_char_index
  @end_char_index
end

#entity_nameString

Returns The entity type.

Returns:

  • (String)

    The entity type.



17
18
19
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb', line 17

def entity_name
  @entity_name
end

#roleString

Returns The role of the entity within the utterance.

Returns:

  • (String)

    The role of the entity within the utterance.



28
29
30
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb', line 28

def role
  @role
end

#start_char_indexInteger

entity starts.

Returns:

  • (Integer)

    The index within the utterance where the extracted



21
22
23
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb', line 21

def start_char_index
  @start_char_index
end

Class Method Details

.mapperObject

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



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EntityLabelObject',
    type: {
      name: 'Composite',
      class_name: 'EntityLabelObject',
      model_properties: {
        entity_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entityName',
          type: {
            name: 'String'
          }
        },
        start_char_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startCharIndex',
          type: {
            name: 'Number'
          }
        },
        end_char_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endCharIndex',
          type: {
            name: 'Number'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          serialized_name: 'role',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end