| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Object model for updating a Phraselist. |
| | 18 | | /// </summary> |
| | 19 | | public partial class PhraselistUpdateObject |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the PhraselistUpdateObject class. |
| | 23 | | /// </summary> |
| 0 | 24 | | public PhraselistUpdateObject() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the PhraselistUpdateObject class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="phrases">List of comma-separated phrases that |
| | 33 | | /// represent the Phraselist.</param> |
| | 34 | | /// <param name="name">The Phraselist name.</param> |
| | 35 | | /// <param name="isActive">Indicates if the Phraselist is |
| | 36 | | /// enabled.</param> |
| | 37 | | /// <param name="isExchangeable">An exchangeable phrase list feature |
| | 38 | | /// are serves as single feature to the LUIS underlying training |
| | 39 | | /// algorithm. It is used as a lexicon lookup feature where its value |
| | 40 | | /// is 1 if the lexicon contains a given word or 0 if it doesn’t. Think |
| | 41 | | /// of an exchangeable as a synonyms list. A non-exchangeable phrase |
| | 42 | | /// list feature has all the phrases in the list serve as separate |
| | 43 | | /// features to the underlying training algorithm. So, if you your |
| | 44 | | /// phrase list feature contains 5 phrases, they will be mapped to 5 |
| | 45 | | /// separate features. You can think of the non-exchangeable phrase |
| | 46 | | /// list feature as an additional bag of words that you are willing to |
| | 47 | | /// add to LUIS existing vocabulary features. Think of a |
| | 48 | | /// non-exchangeable as set of different words. Default value is |
| | 49 | | /// true.</param> |
| | 50 | | /// <param name="enabledForAllModels">Indicates if the Phraselist is |
| | 51 | | /// enabled for all models in the application.</param> |
| 0 | 52 | | public PhraselistUpdateObject(string phrases = default(string), string name = default(string), bool? isActive = |
| | 53 | | { |
| 0 | 54 | | Phrases = phrases; |
| 0 | 55 | | Name = name; |
| 0 | 56 | | IsActive = isActive; |
| 0 | 57 | | IsExchangeable = isExchangeable; |
| 0 | 58 | | EnabledForAllModels = enabledForAllModels; |
| | 59 | | CustomInit(); |
| 0 | 60 | | } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// An initialization method that performs custom operations like setting defaults |
| | 64 | | /// </summary> |
| | 65 | | partial void CustomInit(); |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets list of comma-separated phrases that represent the |
| | 69 | | /// Phraselist. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "phrases")] |
| 0 | 72 | | public string Phrases { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets or sets the Phraselist name. |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "name")] |
| 0 | 78 | | public string Name { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets indicates if the Phraselist is enabled. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "isActive")] |
| 0 | 84 | | public bool? IsActive { get; set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets or sets an exchangeable phrase list feature are serves as |
| | 88 | | /// single feature to the LUIS underlying training algorithm. It is |
| | 89 | | /// used as a lexicon lookup feature where its value is 1 if the |
| | 90 | | /// lexicon contains a given word or 0 if it doesn’t. Think of an |
| | 91 | | /// exchangeable as a synonyms list. A non-exchangeable phrase list |
| | 92 | | /// feature has all the phrases in the list serve as separate features |
| | 93 | | /// to the underlying training algorithm. So, if you your phrase list |
| | 94 | | /// feature contains 5 phrases, they will be mapped to 5 separate |
| | 95 | | /// features. You can think of the non-exchangeable phrase list feature |
| | 96 | | /// as an additional bag of words that you are willing to add to LUIS |
| | 97 | | /// existing vocabulary features. Think of a non-exchangeable as set of |
| | 98 | | /// different words. Default value is true. |
| | 99 | | /// </summary> |
| | 100 | | [JsonProperty(PropertyName = "isExchangeable")] |
| 0 | 101 | | public bool? IsExchangeable { get; set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets or sets indicates if the Phraselist is enabled for all models |
| | 105 | | /// in the application. |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "enabledForAllModels")] |
| 0 | 108 | | public bool? EnabledForAllModels { get; set; } |
| | 109 | |
|
| | 110 | | } |
| | 111 | | } |