openfst-python icon indicating copy to clipboard operation
openfst-python copied to clipboard

f = fst.Fst(). error

Open Alex-Songs opened this issue 2 years ago • 2 comments

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_'

Alex-Songs avatar Nov 17 '22 14:11 Alex-Songs

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

jpuigcerver avatar Nov 17 '22 14:11 jpuigcerver

@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.

ianlini avatar Jan 29 '23 09:01 ianlini