< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models.LabeledUtterance
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\LabeledUtterance.cs
Covered lines:6
Uncovered lines:12
Coverable lines:18
Total lines:104
Line coverage:33.3% (6 of 18)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_Text()-0%100%
get_TokenizedText()-100%100%
get_IntentLabel()-0%100%
get_EntityLabels()-100%100%
get_IntentPredictions()-100%100%
get_EntityPredictions()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\LabeledUtterance.cs

#LineLine coverage
 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
 11namespace 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>
 10126        public LabeledUtterance()
 27        {
 28            CustomInit();
 10129        }
 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>
 043        public LabeledUtterance(int? id = default(int?), string text = default(string), IList<string> tokenizedText = de
 44        {
 045            Id = id;
 046            Text = text;
 047            TokenizedText = tokenizedText;
 048            IntentLabel = intentLabel;
 049            EntityLabels = entityLabels;
 050            IntentPredictions = intentPredictions;
 051            EntityPredictions = entityPredictions;
 52            CustomInit();
 053        }
 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")]
 064        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")]
 071        public string Text { get; set; }
 72
 73        /// <summary>
 74        /// Gets or sets the utterance tokenized.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "tokenizedText")]
 20277        public IList<string> TokenizedText { get; set; }
 78
 79        /// <summary>
 80        /// Gets or sets the intent matching the example.
 81        /// </summary>
 82        [JsonProperty(PropertyName = "intentLabel")]
 083        public string IntentLabel { get; set; }
 84
 85        /// <summary>
 86        /// Gets or sets the entities matching the example.
 87        /// </summary>
 88        [JsonProperty(PropertyName = "entityLabels")]
 20389        public IList<EntityLabel> EntityLabels { get; set; }
 90
 91        /// <summary>
 92        /// Gets or sets list of suggested intents.
 93        /// </summary>
 94        [JsonProperty(PropertyName = "intentPredictions")]
 20295        public IList<IntentPrediction> IntentPredictions { get; set; }
 96
 97        /// <summary>
 98        /// Gets or sets list of suggested entities.
 99        /// </summary>
 100        [JsonProperty(PropertyName = "entityPredictions")]
 202101        public IList<EntityPrediction> EntityPredictions { get; set; }
 102
 103    }
 104}