Oh right, I had completely forgotten about this. With non-lattice input, there is some logic that looks for phrases only up to a certain max phrase size. However, this does not work with lattices and must be disabled. I usually set the max phrase size to be 100000 or something like that, which has an equivalent effect.
2010/3/14 Sergey Protasov <[email protected]>: > 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 > > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
