Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allophone State Fsa bug for arc's weight leaving silence #14

Merged
merged 8 commits into from
Dec 2, 2022
5 changes: 4 additions & 1 deletion src/Am/ClassicTransducerBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,10 @@ typedef std::unordered_map<MinimizedState, Fsa::State*, MinimizedState::Hash,
* phone0 the first state of a phone segment
* phone1 the second state of a phone segment
*
* silence.exit = silence.forward - phone?.forward but why?
* silence.exit = silence.forward - phone?.forward due to epsilon arcs. This happens in the legacy
* LegacyApplicator that is buggy, and has been corrector by implementing
* CorrectedApplicator, where the weights are read by refering to the correct source state
* in case we have an epsilon arc
**/
Fsa::ConstAutomatonRef ClassicTransducerBuilder::createEmissionLoopTransducer(
bool transitionModel) {
Expand Down
Loading