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:
authorKenneth Heafield <github@kheafield.com>2012-10-22 20:40:23 +0400
committerKenneth Heafield <github@kheafield.com>2012-10-22 20:40:23 +0400
commitc34ecf12ded9a7bda95d7021fc431523d421888b (patch)
tree85d6aa3573aba712b5dd8cae66da7c208d01946f /OnDiskPt
parent4296e9720b659dc1b2b0f0039ef5e4bd3af87a26 (diff)
TargetPhrase doesn't have a FactorDirection constructor.
It was implicitly doing TargetPhrase(Phrase(size_t)) wastefully
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 ecb5d384d..8074aa60c 100644
--- a/OnDiskPt/TargetPhrase.cpp
+++ b/OnDiskPt/TargetPhrase.cpp
@@ -232,7 +232,7 @@ Moses::TargetPhrase *TargetPhrase::ConvertToMoses(const std::vector<Moses::Facto
, const Moses::WordPenaltyProducer* wpProducer
, const Moses::LMList &lmList) const
{
- Moses::TargetPhrase *ret = new Moses::TargetPhrase(Moses::Output);
+ Moses::TargetPhrase *ret = new Moses::TargetPhrase();
// words
size_t phraseSize = GetSize();