Class: Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::JSONEntity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/jsonentity.rb

Overview

Exported Model - Extracted Entity from utterance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_posInteger

entity ends.

Returns:

  • (Integer)

    The index within the utterance where the extracted



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

def end_pos
  @end_pos
end

#entityString

Returns The entity name.

Returns:

  • (String)

    The entity name.



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

def entity
  @entity
end

#roleString

Returns The role the entity plays in the utterance.

Returns:

  • (String)

    The role the entity plays in the utterance.



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

def role
  @role
end

#start_posInteger

entity starts.

Returns:

  • (Integer)

    The index within the utterance where the extracted



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

def start_pos
  @start_pos
end

Class Method Details

.mapperObject

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



34
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
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/jsonentity.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JSONEntity',
    type: {
      name: 'Composite',
      class_name: 'JSONEntity',
      model_properties: {
        start_pos: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startPos',
          type: {
            name: 'Number'
          }
        },
        end_pos: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endPos',
          type: {
            name: 'Number'
          }
        },
        entity: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entity',
          type: {
            name: 'String'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          serialized_name: 'role',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end