| | 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 | | /// Exported Model - Phraselist Model Feature. |
| | 18 | | /// </summary> |
| | 19 | | public partial class JSONModelFeature |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the JSONModelFeature class. |
| | 23 | | /// </summary> |
| 5 | 24 | | public JSONModelFeature() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 5 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the JSONModelFeature class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="activated">Indicates if the feature is |
| | 33 | | /// enabled.</param> |
| | 34 | | /// <param name="name">The Phraselist name.</param> |
| | 35 | | /// <param name="words">List of comma-separated phrases that represent |
| | 36 | | /// the Phraselist.</param> |
| | 37 | | /// <param name="mode">An interchangeable phrase list feature serves as |
| | 38 | | /// a list of synonyms for training. A non-exchangeable phrase list |
| | 39 | | /// serves as separate features for training. So, if your |
| | 40 | | /// non-interchangeable phrase list contains 5 phrases, they will be |
| | 41 | | /// mapped to 5 separate features. You can think of the |
| | 42 | | /// non-interchangeable phrase list as an additional bag of words to |
| | 43 | | /// add to LUIS existing vocabulary features. It is used as a lexicon |
| | 44 | | /// lookup feature where its value is 1 if the lexicon contains a given |
| | 45 | | /// word or 0 if it doesn’t. Default value is true.</param> |
| | 46 | | /// <param name="enabledForAllModels">Indicates if the Phraselist is |
| | 47 | | /// enabled for all models in the application.</param> |
| 0 | 48 | | public JSONModelFeature(bool? activated = default(bool?), string name = default(string), string words = default( |
| | 49 | | { |
| 0 | 50 | | Activated = activated; |
| 0 | 51 | | Name = name; |
| 0 | 52 | | Words = words; |
| 0 | 53 | | Mode = mode; |
| 0 | 54 | | EnabledForAllModels = enabledForAllModels; |
| | 55 | | CustomInit(); |
| 0 | 56 | | } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// An initialization method that performs custom operations like setting defaults |
| | 60 | | /// </summary> |
| | 61 | | partial void CustomInit(); |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets indicates if the feature is enabled. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "activated")] |
| 10 | 67 | | public bool? Activated { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets the Phraselist name. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "name")] |
| 10 | 73 | | public string Name { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets list of comma-separated phrases that represent the |
| | 77 | | /// Phraselist. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "words")] |
| 10 | 80 | | public string Words { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets an interchangeable phrase list feature serves as a |
| | 84 | | /// list of synonyms for training. A non-exchangeable phrase list |
| | 85 | | /// serves as separate features for training. So, if your |
| | 86 | | /// non-interchangeable phrase list contains 5 phrases, they will be |
| | 87 | | /// mapped to 5 separate features. You can think of the |
| | 88 | | /// non-interchangeable phrase list as an additional bag of words to |
| | 89 | | /// add to LUIS existing vocabulary features. It is used as a lexicon |
| | 90 | | /// lookup feature where its value is 1 if the lexicon contains a given |
| | 91 | | /// word or 0 if it doesn’t. Default value is true. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "mode")] |
| 10 | 94 | | public bool? Mode { get; set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets indicates if the Phraselist is enabled for all models |
| | 98 | | /// in the application. |
| | 99 | | /// </summary> |
| | 100 | | [JsonProperty(PropertyName = "enabledForAllModels")] |
| 6 | 101 | | public bool? EnabledForAllModels { get; set; } |
| | 102 | |
|
| | 103 | | } |
| | 104 | | } |