Class: Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::EntityLabel
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::EntityLabel
- 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
-
#end_token_index ⇒ Integer
entity ends.
-
#entity_name ⇒ String
The entity type.
-
#role ⇒ String
The role of the predicted entity.
-
#role_id ⇒ Object
The role id for the predicted entity.
-
#start_token_index ⇒ Integer
entity starts.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for EntityLabel class as Ruby Hash.
Instance Attribute Details
#end_token_index ⇒ Integer
entity ends.
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_name ⇒ String
Returns 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 |
#role ⇒ String
Returns 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_id ⇒ Object
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_index ⇒ Integer
entity starts.
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
.mapper ⇒ Object
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 |