Class: Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PhraseListFeatureInfo
- Inherits:
-
FeatureInfoObject
- Object
- FeatureInfoObject
- Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PhraseListFeatureInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb
Overview
Phraselist Feature.
Instance Attribute Summary collapse
-
#is_exchangeable ⇒ Boolean
single feature to the LUIS underlying training algorithm.
-
#phrases ⇒ String
A list of comma-separated values.
Attributes inherited from FeatureInfoObject
#enabled_for_all_models, #id, #is_active, #name
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PhraseListFeatureInfo class as Ruby Hash.
Instance Attribute Details
#is_exchangeable ⇒ Boolean
single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
29 30 31 |
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb', line 29 def is_exchangeable @is_exchangeable end |
#phrases ⇒ String
Returns A list of comma-separated values.
16 17 18 |
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb', line 16 def phrases @phrases end |
Class Method Details
.mapper ⇒ Object
Mapper for PhraseListFeatureInfo class as Ruby Hash. This will be used for serialization/deserialization.
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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb', line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PhraseListFeatureInfo', type: { name: 'Composite', class_name: 'PhraseListFeatureInfo', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'Number' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, is_active: { client_side_validation: true, required: false, serialized_name: 'isActive', type: { name: 'Boolean' } }, enabled_for_all_models: { client_side_validation: true, required: false, serialized_name: 'enabledForAllModels', type: { name: 'Boolean' } }, phrases: { client_side_validation: true, required: false, serialized_name: 'phrases', type: { name: 'String' } }, is_exchangeable: { client_side_validation: true, required: false, serialized_name: 'isExchangeable', type: { name: 'Boolean' } } } } } end |