Joll59 / d-ser-t

d-ser-t quantifies speech recognition accuracy of the MSFT speech service and/or user created MSFT custom speech service models.
2 stars 2 forks source link

Validate transcription.txt early so that we fail fast #12

Closed KatieProchilo closed 5 years ago

KatieProchilo commented 5 years ago

We should fail as fast as possible. To do so, we need to change a couple of things:

  1. Factor the validation and cleaning components from validateExpectedTranscription() into separate functions - validateExpectedTranscription() and cleanExpectedTranscription().
  2. Call validateExpectedTranscription() as soon as possible in the code so that we can quickly fail.
KatieProchilo commented 5 years ago

NOTE: Let's hold off on this for now. I'll be working on analyzeActualTranscription() within the next couple of days. This function may use some of the factored-out functionality from above, so let's not refactor multiple times.