Skip to content

Conversation

@eginhard
Copy link
Contributor

If a single phoneme is aligned to the whole utterance, it is counted both as
begin and end, but is added to the total only once. This caused
assert count >= 0 in analyze_phone_length_stats.py to fail (count = all - begin - end).

I'm not sure what the ideal behavior is, but in this change only the begin is counted in such cases.

If a single phoneme is aligned to the whole utterance, it is counted both as `begin` and `end`, but is added to the total only once. This caused `assert count >= 0` in analyze_phone_length_stats.py to fail. Now only the `begin` is counted in that case.
@danpovey
Copy link
Contributor

OK. It seems to mess with the expected meanings of the counts, but I can't see a better way to resolve the issue that's easy, so I'll merge this.

@danpovey danpovey merged commit 1616653 into kaldi-asr:master Jul 25, 2018
dpriver pushed a commit to dpriver/kaldi that referenced this pull request Sep 13, 2018
…asr#2573) If a single phoneme is aligned to the whole utterance, it is counted both as `begin` and `end`, but is added to the total only once. This caused `assert count >= 0` in analyze_phone_length_stats.py to fail. Now only the `begin` is counted in that case.
Skaiste pushed a commit to Skaiste/idlak that referenced this pull request Sep 26, 2018
…asr#2573) If a single phoneme is aligned to the whole utterance, it is counted both as `begin` and `end`, but is added to the total only once. This caused `assert count >= 0` in analyze_phone_length_stats.py to fail. Now only the `begin` is counted in that case.
@eginhard eginhard deleted the awk-fix branch February 23, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants