We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb4e80 commit 99a4463Copy full SHA for 99a4463
src/bin/compute-gop.cc
@@ -155,6 +155,10 @@ int main(int argc, char *argv[]) {
155
int32 num_done = 0;
156
for (; !prob_reader.Done(); prob_reader.Next()) {
157
std::string key = prob_reader.Key();
158
+ if (!alignment_reader.HasKey(key)) {
159
+ KALDI_WARN << "No alignment for utterance " << key;
160
+ continue;
161
+ }
162
auto alignment = alignment_reader.Value(key);
163
Matrix<BaseFloat> &probs = prob_reader.Value();
164
if (log_applied) probs.ApplyExp();
0 commit comments