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

support for openFst new versions #32

Open
mohamad-hasan-sohan-ajini opened this issue Mar 18, 2017 · 6 comments
Open

support for openFst new versions #32

mohamad-hasan-sohan-ajini opened this issue Mar 18, 2017 · 6 comments

Comments

@mohamad-hasan-sohan-ajini

Hi

I try to install OpenFst 1.6 and then install pyfst. but I get error while installing pyfst. However by reverting OpenFst to version 1.3, the problem was solved, but is there any plan to support most recently releases of OpenFst (1.6 at this time)?

regards

@lkraav
Copy link

lkraav commented May 2, 2017

Indeed, Kaldi 5.1.65 seems to require openfst > 1.6.0, downgrading to 1.3.x is not an option anymore.

My openfst is built with --enable-far, but pyfst isn't able to build even with "-std=c++11"

Any other ideas?

@lkraav
Copy link

lkraav commented May 2, 2017

This fork https://github.com/UFAL-DSG/pyfst/ gets us a step further, but I think we're still incompatible with openfst 1.6.

fst/_fst.cpp: In function ‘PyObject* __pyx_pf_3fst_4_fst_12LogVectorFst_120draw(__pyx_obj_3fst_4_fst_LogVectorFst*, __pyx_obj_3fst_4_fst_SymbolTable*, __pyx_obj_3fst_4_fst_SymbolTable*, __pyx_obj_3fst_4_fst_SymbolTable*)’:
fst/_fst.cpp:30720:191: error: no matching function for call to ‘fst::FstDrawer<fst::ArcTpl<fst::LogWeightTpl<float> > >::FstDrawer(fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl<float> > >&, fst::SymbolTable*&, fst::SymbolTable*&, fst::SymbolTable*&, int, std::string&, double, double, int, int, double, double, int, int, int)’
   __pyx_v_drawer = new fst::FstDrawer<fst::LogArc> ((__pyx_v_self->fst[0]), __pyx_v_isyms_table, __pyx_v_osyms_table, __pyx_v_ssyms_table, 0, __pyx_t_5, 8.5, 11.0, 1, 0, 0.40, 0.25, 14, 5, 0);
                                                                                                                                                                                               ^
fst/_fst.cpp:30720:191: note: candidate is:
In file included from /usr/include/fst/script/draw.h:10:0,
                 from fst/_fst.cpp:292:
/usr/include/fst/script/draw-impl.h:29:3: note: fst::FstDrawer<Arc>::FstDrawer(const fst::Fst<Arc>&, const fst::SymbolTable*, const fst::SymbolTable*, const fst::SymbolTable*, bool, const string&, float, float, bool, bool, float, float, int, int, const string&, bool) [with Arc = fst::ArcTpl<fst::LogWeightTpl<float> >; std::string = std::basic_string<char>]
   FstDrawer(const Fst<Arc> &fst, const SymbolTable *isyms,
   ^
/usr/include/fst/script/draw-impl.h:29:3: note:   candidate expects 16 arguments, 15 provided
command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1

@ekshaks
Copy link

ekshaks commented May 30, 2017

The FstDrawer function signatures are incompatible across OpenFST 1.6 and the current version of pyfst. I had to fix the two files fst/libfst.pxd.tpl and fst/_fst.pyx.tpl to get it to work with 1.6.2.

@kylebgorman
Copy link

kylebgorman commented May 30, 2017 via email

@placebokkk
Copy link

placebokkk commented Apr 2, 2018

This branch(https://github.com/placebokkk/pyfst) supports 1.6 by fix FstDrawer interface.

@Pierre-Bartet
Copy link

Pierre-Bartet commented Apr 26, 2024

Y'all realize there's an official OpenFst Python wrapper with significantly
more functionality than pyfst, that it is continuously maintained, it's
compatible with recent versions of OpenFst, right?

No we don't, https://www.openfst.org/ is down most of the time and not easy to navigate, so thanks for the hint !
But in the end I could not make it work, nor any other existing wrapper.

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

6 participants