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