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

implement RmEpsilonPruneMax #40

Merged
merged 3 commits into from
May 26, 2020
Merged

Conversation

qindazhu
Copy link
Collaborator

@qindazhu qindazhu commented May 14, 2020

Input
ori

Output

eps_max

k2/csrc/fsa_algo.h Outdated Show resolved Hide resolved
k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
@qindazhu
Copy link
Collaborator Author

Will go back to this PR after compile determinize.cc. Just go over to validate the correctness of the whole algorthim, will add arc_map later.

k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
@qindazhu
Copy link
Collaborator Author

Remapped state_id in output b, added arc_derivs

@qindazhu qindazhu changed the title [WIP] implement RmEpsilonPruneMax implement RmEpsilonPruneMax May 25, 2020
@qindazhu
Copy link
Collaborator Author

Sorry, forgot to remove WIP in the title. Ready to merge if there's no other issues.

Copy link
Collaborator

@danpovey danpovey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good that you implemented this, but this implementation would be too slow. Please look at the extended comment in the header where I declared this function.

k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
@qindazhu
Copy link
Collaborator Author

@danpovey implemented with traceback-based algorithm, please have a review.

@danpovey
Copy link
Collaborator

danpovey commented May 25, 2020 via email

@csukuangfj
Copy link
Collaborator

Looks good to me.

@danpovey
Copy link
Collaborator

danpovey commented May 25, 2020 via email

k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
@danpovey
Copy link
Collaborator

Cool! Merging.

@danpovey danpovey merged commit 75a83c9 into k2-fsa:master May 26, 2020
@qindazhu qindazhu deleted the haowen-fsa-eps branch May 26, 2020 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants