you're quite right, i've added a check https://github.com/moses-smt/mosesdecoder/commit/982d52e5b657f4c1fa7369e577cfd75a8af16543 However, that the the problem I'm having on OSX. It opens but it crashes on loading.
I suspect one of the datatypes has slightly different size on clang/OSX compared to gcc/Linux Hieu Hoang http://www.hoang.co.uk/hieu On 13 October 2015 at 07:03, Jeroen Vermeulen < j...@precisiontranslationtools.com> wrote: > On 10/12/2015 11:15 PM, Hieu Hoang wrote: > > I'm not sure if anyone else encounters it but the compact lexical > > reordering table crashes for me on OSX/clang during loading. > > > > The stack trace i have for this is > > LexicalReorderingTableCompact::LexicalReorderingTableCompact > > LexicalReorderingTableCompact::Load line 180 > > StringVector::load line 2808 > > StringVector::loadCharArray line 247 > > Could the file simply not be open? It's opened in > LexicalReorderingTableCompact::Load, but as far as I can see, *nothing* > ever checks that this actually works. Code just keeps reading from the > file and assuming success, and using the possibly invalid result. Maybe > this just happens to be the first point where it causes a crash. > > > Jeroen > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support