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

lookup_optimize() should not remove the weights #2

Open
koskenni opened this issue Apr 14, 2019 · 1 comment
Open

lookup_optimize() should not remove the weights #2

koskenni opened this issue Apr 14, 2019 · 1 comment

Comments

@koskenni
Copy link

lookup_optimize (self) documentation says: "Optimize the transducer for lookup. This effectively converts the transducer into HFST_OL_TYPE."

It would be very convenient if the conversion of weighted FSTs into the OLW type could be done inside Python, e.g. if lookup_optimize would simply convert weighted FSTs into OLW and unweighted into OL type.

According to the present documentation, one has to produced OLWs by command line tools outside the Python HFST framework.

@koskenni
Copy link
Author

According to the documentation, convert() seems to do the optimization both into the HFST_OL_TYPE and the HFST_OLW_TYPE. Maybe one could revise the documentation of lookup_optimize() to refer to convert() when one needs to keep the weights.

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

No branches or pull requests

1 participant