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

f = fst.Fst(). error #5

Open
Alex-Songs opened this issue Nov 17, 2022 · 2 comments
Open

f = fst.Fst(). error #5

Alex-Songs opened this issue Nov 17, 2022 · 2 comments

Comments

@Alex-Songs
Copy link

import openfst_python as fst
f = fst.Fst()
Traceback (most recent call last):
File "", line 1, in
File "pywrapfst.pyx", line 1617, in pywrapfst.Fst.init
AttributeError: 'pywrapfst.Fst' object has no attribute 'class_'

@jpuigcerver
Copy link
Owner

The code works with OpenFst 1.7.9. Are you using that version?

@ianlini
Copy link

ianlini commented Jan 29, 2023

@jpuigcerver This seems like a duplicate of #2, and you said that:

Yes. The Python interface for OpenFst has been broken at least since version 1.7.1. Last time I checked, 1.7.9 was still broken. This library uses wraps that interface, so until they fix it, there's not much I can do.

You can switch to the 1.6.9 branch and that should be fine.

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

3 participants