| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A prediction and label pair of an example. |
| | 20 | | /// </summary> |
| | 21 | | public partial class LabeledUtterance |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the LabeledUtterance class. |
| | 25 | | /// </summary> |
| 101 | 26 | | public LabeledUtterance() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 101 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the LabeledUtterance class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="id">ID of Labeled Utterance.</param> |
| | 35 | | /// <param name="text">The utterance. For example, "What's the weather |
| | 36 | | /// like in seattle?"</param> |
| | 37 | | /// <param name="tokenizedText">The utterance tokenized.</param> |
| | 38 | | /// <param name="intentLabel">The intent matching the example.</param> |
| | 39 | | /// <param name="entityLabels">The entities matching the |
| | 40 | | /// example.</param> |
| | 41 | | /// <param name="intentPredictions">List of suggested intents.</param> |
| | 42 | | /// <param name="entityPredictions">List of suggested entities.</param> |
| 0 | 43 | | public LabeledUtterance(int? id = default(int?), string text = default(string), IList<string> tokenizedText = de |
| | 44 | | { |
| 0 | 45 | | Id = id; |
| 0 | 46 | | Text = text; |
| 0 | 47 | | TokenizedText = tokenizedText; |
| 0 | 48 | | IntentLabel = intentLabel; |
| 0 | 49 | | EntityLabels = entityLabels; |
| 0 | 50 | | IntentPredictions = intentPredictions; |
| 0 | 51 | | EntityPredictions = entityPredictions; |
| | 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 ID of Labeled Utterance. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "id")] |
| 0 | 64 | | public int? Id { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the utterance. For example, "What's the weather like |
| | 68 | | /// in seattle?" |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "text")] |
| 0 | 71 | | public string Text { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets the utterance tokenized. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "tokenizedText")] |
| 202 | 77 | | public IList<string> TokenizedText { get; set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets or sets the intent matching the example. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "intentLabel")] |
| 0 | 83 | | public string IntentLabel { get; set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets or sets the entities matching the example. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "entityLabels")] |
| 203 | 89 | | public IList<EntityLabel> EntityLabels { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets list of suggested intents. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "intentPredictions")] |
| 202 | 95 | | public IList<IntentPrediction> IntentPredictions { get; set; } |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Gets or sets list of suggested entities. |
| | 99 | | /// </summary> |
| | 100 | | [JsonProperty(PropertyName = "entityPredictions")] |
| 202 | 101 | | public IList<EntityPrediction> EntityPredictions { get; set; } |
| | 102 | |
|
| | 103 | | } |
| | 104 | | } |