Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2014-08-04 22:28:04 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-08-04 22:28:04 +0400
commite863592f40efb41eef11f1de09b1da59c0246611 (patch)
tree08106fe61e3f51257b970f6adceee7c902252fa0 /moses/PDTAimp.cpp
parentabe68be588db3a96c5e247162b72054cbc146031 (diff)
TargetPhrase to have pointer to the phrase table that creates it
Diffstat (limited to 'moses/PDTAimp.cpp')
-rw-r--r--moses/PDTAimp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/PDTAimp.cpp b/moses/PDTAimp.cpp
index 1645a0cce..424559b8f 100644
--- a/moses/PDTAimp.cpp
+++ b/moses/PDTAimp.cpp
@@ -112,7 +112,7 @@ PDTAimp::GetTargetPhraseCollection(Phrase const &src) const {
// convert into TargetPhrases
for(size_t i=0; i<cands.size(); ++i) {
- TargetPhrase targetPhrase;
+ TargetPhrase targetPhrase(m_obj);
StringTgtCand::Tokens const& factorStrings=cands[i].tokens;
Scores const& probVector=cands[i].scores;
@@ -369,7 +369,7 @@ void PDTAimp::CacheSource(ConfusionNet const& src) {
for(E2Costs::const_iterator j=i->second.begin(); j!=i->second.end(); ++j) {
TScores const & scores=j->second;
- TargetPhrase targetPhrase;
+ TargetPhrase targetPhrase(m_obj);
CreateTargetPhrase(targetPhrase
, j ->first
, scores.transScore