Address review comments

This commit is contained in:
Reuben Morais 2019-09-18 15:09:11 +02:00
parent 0ac498bc50
commit d0e11c73cd
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,9 @@ typedef struct MetadataItem {
typedef struct Metadata {
MetadataItem* items;
int num_items;
// Approximated confidence value for this transcription.
// Approximated confidence value for this transcription. This is roughly the
// sum of the acoustic model logit values for each timestep/character that
// contributed to the creation of this transcription.
double confidence;
} Metadata;

View File

@ -26,7 +26,7 @@ namespace CSharpExamples
var nl = Environment.NewLine;
string retval =
Environment.NewLine + $"Recognized text: {string.Join("", meta?.Items?.Select(x => x.Character))} {nl}"
+ $"Prob: {meta?.Probability} {nl}"
+ $"Confidence: {meta?.Confidence} {nl}"
+ $"Item count: {meta?.Items?.Length} {nl}"
+ string.Join(nl, meta?.Items?.Select(x => $"Timestep : {x.Timestep} TimeOffset: {x.StartTime} Char: {x.Character}"));
return retval;