Closed lawlict closed 7 months ago
I think fsa union follows the following semantics from openfst. https://www.openfst.org/twiki/bin/view/FST/UnionDoc
@csukuangfj Yes, the result of union()
function is correct, and I wonder is there anyway to simplify it?
You could determinize it with epsilon removal, if supported, or remove epsilons then determinize. I don't recall how good the support in k2 for determinization is, it is only supported on CPU I think.
@danpovey I see. Thank you for your response.
Hi, I hope to take
k2.union()
function to merge the nbest paths into one fsa. The result is correct, but some how not as expected. Here is a simple example:Since fsa_a and fsa_b are the same, I expect that fsa_union would be equal to fsa_a. But fsa_union actually looks like: Is there any way to simplify fsa_union?
Best wishes.