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:
authorMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-12-03 23:04:26 +0300
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-12-03 23:04:26 +0300
commit24a8a6a51104c8518fcb8d252f83ff580986c2db (patch)
tree1fc5f912f7623dda8d1a1f08fb0e9acfff32cba8 /phrase-extract/ExtractionPhrasePair.cpp
parent5bbd30ec12e4bcb88e29246e4fce71cc33528d44 (diff)
PhraseOrientationFeature
Diffstat (limited to 'phrase-extract/ExtractionPhrasePair.cpp')
-rw-r--r--phrase-extract/ExtractionPhrasePair.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/phrase-extract/ExtractionPhrasePair.cpp b/phrase-extract/ExtractionPhrasePair.cpp
index ccf0fc275..b281a05b0 100644
--- a/phrase-extract/ExtractionPhrasePair.cpp
+++ b/phrase-extract/ExtractionPhrasePair.cpp
@@ -469,7 +469,7 @@ void ExtractionPhrasePair::CollectAllPhraseOrientations(const std::string &key,
double smoothingFactor,
std::ostream &out) const
{
- assert(orientationClassPriorsL2R.size()==4 && orientationClassPriorsR2L.size()==4); // mono swap dright dleft
+ assert(orientationClassPriorsL2R.size()==4 && orientationClassPriorsR2L.size()==4); // mono swap dleft dright
const PROPERTY_VALUES *allPropertyValues = GetProperty( key );
@@ -507,10 +507,10 @@ void ExtractionPhrasePair::CollectAllPhraseOrientations(const std::string &key,
if (!l2rOrientationClass.compare("swap")) {
l2rOrientationClassId = 1;
}
- if (!l2rOrientationClass.compare("dright")) {
+ if (!l2rOrientationClass.compare("dleft")) {
l2rOrientationClassId = 2;
}
- if (!l2rOrientationClass.compare("dleft")) {
+ if (!l2rOrientationClass.compare("dright")) {
l2rOrientationClassId = 3;
}
if (l2rOrientationClassId == -1) {
@@ -525,10 +525,10 @@ void ExtractionPhrasePair::CollectAllPhraseOrientations(const std::string &key,
if (!r2lOrientationClass.compare("swap")) {
r2lOrientationClassId = 1;
}
- if (!r2lOrientationClass.compare("dright")) {
+ if (!r2lOrientationClass.compare("dleft")) {
r2lOrientationClassId = 2;
}
- if (!r2lOrientationClass.compare("dleft")) {
+ if (!r2lOrientationClass.compare("dright")) {
r2lOrientationClassId = 3;
}
if (r2lOrientationClassId == -1) {