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:
authorEva Hasler <evahasler@gmail.com>2011-11-24 23:27:12 +0400
committerEva Hasler <evahasler@gmail.com>2011-11-24 23:27:12 +0400
commit9084db96c4f28b69485bac178ffa7a14b67e36bd (patch)
tree2d609303dac45efc5e317c4a7fab72c55dcfdf47 /moses-cmd
parent67429126624c8f9c8eca79e6e308895997831115 (diff)
add parameter weight-dlm as additional dense weight
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/src/IOWrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/moses-cmd/src/IOWrapper.cpp b/moses-cmd/src/IOWrapper.cpp
index 12c6d1936..86a42c82d 100644
--- a/moses-cmd/src/IOWrapper.cpp
+++ b/moses-cmd/src/IOWrapper.cpp
@@ -44,6 +44,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "DummyScoreProducers.h"
#include "FeatureVector.h"
#include "InputFileStream.h"
+#include <boost/algorithm/string.hpp>
using namespace std;
using namespace Moses;
@@ -507,7 +508,7 @@ void OutputFeatureScores( std::ostream& out, const TrellisPath &path, const Feat
// report weighted aggregate
if (! ff->GetSparseFeatureReporting()) {
const FVector &weights = staticData.GetAllWeights().GetScoresVector();
- if (labeledOutput)
+ if (labeledOutput && !boost::contains(ff->GetScoreProducerDescription(), ":"))
out << " " << ff->GetScoreProducerWeightShortName() << ":";
out << " " << scores.inner_product(weights);
}