I found that segmentation fault was in m_collection.Add

@@ -577,6 +577,9 @@
 void TranslationOptionCollection::Add(TranslationOption *translationOption)
 {
        const WordsRange &coverage =
translationOption->GetSourceWordsRange();
        m_collection[coverage.GetStartPos()][coverage.GetEndPos() -
coverage.GetStartPos()].Add(translationOption);
 }


I solved this by comment all
//    maxSize = std::min(maxSize, maxSizePhrase)
in moses/src/TranslationOptionCollection.cpp


But the next problem is "No best translation" for large word lattice.


2010/3/4 Jörg Tiedemann <[email protected]>

>
> I get a segmentation fault when decoding (large) word lattices. Moses
> seems to parse well through the input but crashes after a while. Tracing
> with gdb gave me this info:
>
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to