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 /OnDiskPt
parentabe68be588db3a96c5e247162b72054cbc146031 (diff)
TargetPhrase to have pointer to the phrase table that creates it
Diffstat (limited to 'OnDiskPt')
-rw-r--r--OnDiskPt/TargetPhrase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OnDiskPt/TargetPhrase.cpp b/OnDiskPt/TargetPhrase.cpp
index 39f425b95..ddbb5c4e5 100644
--- a/OnDiskPt/TargetPhrase.cpp
+++ b/OnDiskPt/TargetPhrase.cpp
@@ -257,7 +257,7 @@ Moses::TargetPhrase *TargetPhrase::ConvertToMoses(const std::vector<Moses::Facto
, const std::vector<float> &weightT
, bool isSyntax) const
{
- Moses::TargetPhrase *ret = new Moses::TargetPhrase();
+ Moses::TargetPhrase *ret = new Moses::TargetPhrase(&phraseDict);
// words
size_t phraseSize = GetSize();