Address review comments
This commit is contained in:
parent
0ac498bc50
commit
d0e11c73cd
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue