Closed pkufool closed 11 months ago
Is there any plan to add the
allow_partial
option onintersect
andintersect_device
? I am doing whole lattice rescoring with a 4-gram LM, and for some reason the lattice for some of the utterances does not have any final states and hencek2.connect(lattice)
outputs an empty Fsa.I have tried increasing the beam size to no avail. I think a workaround would be to allow partial paths, i.e. if not final states are encountered in a lattice then we assume that all states on the last frames are final.
Yes, I think it is doable, @danpovey what do you think?
Merging now, I found the failed tests (mainly windows build) existed for several months, we should fix it in a separate PR.
Is there any plan to add the
allow_partial
option onintersect
andintersect_device
? I am doing whole lattice rescoring with a 4-gram LM, and for some reason the lattice for some of the utterances does not have any final states and hencek2.connect(lattice)
outputs an empty Fsa.I have tried increasing the beam size to no avail. I think a workaround would be to allow partial paths, i.e. if not final states are encountered in a lattice then we assume that all states on the last frames are final.