mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
no segfault. yay
This commit is contained in:
parent
cb348f159a
commit
fa888166c0
@ -304,6 +304,7 @@ TargetPhrase *ProbingPT::CreateTargetPhrase(
|
||||
|
||||
// words
|
||||
for (size_t targetPos = 0; targetPos < numRealWords; ++targetPos) {
|
||||
Word &word = tp->AddWord();
|
||||
for (size_t i = 0; i < m_output.size(); ++i) {
|
||||
FactorType factorType = m_output[i];
|
||||
|
||||
@ -312,7 +313,6 @@ TargetPhrase *ProbingPT::CreateTargetPhrase(
|
||||
const Factor *factor = GetTargetFactor(*probingId);
|
||||
assert(factor);
|
||||
|
||||
Word &word = tp->GetWord(targetPos);
|
||||
word[factorType] = factor;
|
||||
|
||||
offset += sizeof(uint32_t);
|
||||
|
Loading…
Reference in New Issue
Block a user