From: Mailing l. u. f. U. C. a. U. <kal...@li...> - 2011-07-05 11:34:05
|
Hi, There may be some possible IO problems when reading Fsts with the below code: std::ifstream is(fst_in_filename.c_str()); VectorFst<StdArc>::Read(is, fst::FstReadOptions((std::string)fst_in_filename)); On the Kaldi commands I tried under Windows + VS2010, I had to add the binary flag to the ifstream constructor to be able to successfully read in an FST. std::ifstream is(fst_in_filename.c_str(), std::ifstream::binary); I think the cause is the different ways Windows and Unix like systems handle the newline constants when the std::ifstream::binary option is not specified. I'm using OpenFst 1.2.7 compiled as DLL which may be causing the problem just for me. However, the 1.2.7 of the Windows port should speed up the builds quite a lot. Paul |