Пример #1
0
 /// <summary>
 /// Adds a timestamp to the labeled utterance.
 /// </summary>
 /// <param name="instance">Labeled utterance instance.</param>
 /// <param name="timestamp">Timestamp.</param>
 /// <returns>Labeled utterance with timestamp.</returns>
 public static LabeledUtterance WithTimestamp(this LabeledUtterance instance, DateTimeOffset?timestamp)
 {
     return(instance.WithProperty(TimestampPropertyName, timestamp, ToJsonLabeledUtterance));
 }
Пример #2
0
 /// <summary>
 /// Adds a property to the labeled utterance.
 /// </summary>
 /// <param name="instance">Labeled utterance instance.</param>
 /// <param name="propertyName">Property name.</param>
 /// <param name="propertyValue">Property value.</param>
 /// <returns>Labeled utterance with additional property.</returns>
 public static LabeledUtterance WithProperty(this LabeledUtterance instance, string propertyName, object propertyValue)
 {
     return(instance.WithProperty(propertyName, propertyValue, ToJsonLabeledUtterance));
 }
Пример #3
0
 /// <summary>
 /// Adds a confidence score for the text transcription to the labeled utterance.
 /// </summary>
 /// <param name="instance">Labeled utterance instance.</param>
 /// <param name="textScore">Confidence score.</param>
 /// <returns>Labeled utterance with transcription confidence score.</returns>
 public static LabeledUtterance WithTextScore(this LabeledUtterance instance, double?textScore)
 {
     return(instance.WithProperty(TextScorePropertyName, textScore, ToJsonLabeledUtterance));
 }