Class: Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::EntityLabel

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.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_token_indexInteger

entity ends.

Returns:

  • (Integer)

    The index within the utterance where the extracted



25
26
27
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb', line 25

def end_token_index
  @end_token_index
end

#entity_nameString

Returns The entity type.

Returns:

  • (String)

    The entity type.



17
18
19
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb', line 17

def entity_name
  @entity_name
end

#roleString

Returns The role of the predicted entity.

Returns:

  • (String)

    The role of the predicted entity.



28
29
30
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb', line 28

def role
  @role
end

#role_idObject

Returns The role id for the predicted entity.

Returns:

  • The role id for the predicted entity.



31
32
33
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb', line 31

def role_id
  @role_id
end

#start_token_indexInteger

entity starts.

Returns:

  • (Integer)

    The index within the utterance where the extracted



21
22
23
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb', line 21

def start_token_index
  @start_token_index
end

Class Method Details

.mapperObject

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



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
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EntityLabel',
    type: {
      name: 'Composite',
      class_name: 'EntityLabel',
      model_properties: {
        entity_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entityName',
          type: {
            name: 'String'
          }
        },
        start_token_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startTokenIndex',
          type: {
            name: 'Number'
          }
        },
        end_token_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endTokenIndex',
          type: {
            name: 'Number'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          serialized_name: 'role',
          type: {
            name: 'String'
          }
        },
        role_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'roleId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end