Class: Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PhraselistCreateObject

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

Overview

Object model for creating a phraselist model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enabled_for_all_modelsBoolean

in the application. Default value: true .

Returns:

  • (Boolean)

    Indicates if the Phraselist is enabled for all models



35
36
37
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phraselist_create_object.rb', line 35

def enabled_for_all_models
  @enabled_for_all_models
end

#is_exchangeableBoolean

list of synonyms for training. A non-exchangeable phrase list serves as separate features for training. So, if your non-interchangeable phrase list contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-interchangeable phrase list as an additional bag of words to add to LUIS existing vocabulary features. 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. Default value is true. Default value: true .

Returns:

  • (Boolean)

    An interchangeable phrase list feature serves as a



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

def is_exchangeable
  @is_exchangeable
end

#nameString

Returns The Phraselist name.

Returns:

  • (String)

    The Phraselist name.



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

def name
  @name
end

#phrasesString

Phraselist.

Returns:

  • (String)

    List of comma-separated phrases that represent the



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

def phrases
  @phrases
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PhraselistCreateObject',
    type: {
      name: 'Composite',
      class_name: 'PhraselistCreateObject',
      model_properties: {
        phrases: {
          client_side_validation: true,
          required: false,
          serialized_name: 'phrases',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        is_exchangeable: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isExchangeable',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        enabled_for_all_models: {
          client_side_validation: true,
          required: false,
          serialized_name: 'enabledForAllModels',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end