Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::EntityLabelObject
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LuisAuthoring::V2_0::Models::EntityLabelObject
- 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
-
#end_char_index ⇒ Integer
entity ends.
-
#entity_name ⇒ String
The entity type.
-
#role ⇒ String
The role of the entity within the utterance.
-
#start_char_index ⇒ Integer
entity starts.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for EntityLabelObject class as Ruby Hash.
Instance Attribute Details
#end_char_index ⇒ Integer
entity ends.
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_name ⇒ String
Returns 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 |
#role ⇒ String
Returns 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_index ⇒ Integer
entity starts.
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
.mapper ⇒ Object
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 |