Standalone WER script?

(Pritesh Jain) #1

I have transcripts from different speech recognition engines for same audio files, and want to compare them. I want to take Mozilla’s method of wer calculation, however I could not find the relevant file. Can someone please let me know if this is possible?

(Lissyx) #2

We don’t have a standalone code, but you should be able to do that with, if you don’t run any training or validation step and only test step, and that you initialize from an existing model instead of a checkpoint ?

(Pritesh Jain) #3

That would hold for DeepSpeech transcripts. I’m looking to get WER between a ref and hyp text files. This way, one would be able to compare various speech engines in a fast way rather than transcribing each time?

(Lissyx) #4

I’m not sure what you mean by “ref” and “hyp”, but yeah, I was mostly thinking of a usecase where you need to compare on deepspeech model (e.g., comparing your own variation of the model to a reference one?).

(Pritesh Jain) #5

I mean a reference text file containing ground truth and a hypotheses text file containing the transcript.

(Lissyx) #6

Okay. The WER is being computed by calculate_report: and wer() is defined here