mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-01 00:12:27 +03:00
alignment info in the decoder
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3381 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
579253d3cd
commit
277ba483e1
@ -119,7 +119,8 @@ bool PhraseDictionaryMemory::Load(const std::vector<FactorType> &input
|
||||
targetPhrase.SetSourcePhrase(&sourcePhrase);
|
||||
targetPhrase.CreateFromString( output, targetPhraseString, factorDelimiter);
|
||||
|
||||
//targetPhrase.SetAlignmentInfo(tokens[3]);
|
||||
if (tokens.size() > 3)
|
||||
targetPhrase.SetAlignmentInfo(tokens[3]);
|
||||
|
||||
// component score, for n-best output
|
||||
std::vector<float> scv(scoreVector.size());
|
||||
|
Loading…
Reference in New Issue
Block a user