From 24a8a6a51104c8518fcb8d252f83ff580986c2db Mon Sep 17 00:00:00 2001 From: Matthias Huck Date: Wed, 3 Dec 2014 20:04:26 +0000 Subject: PhraseOrientationFeature --- phrase-extract/ExtractionPhrasePair.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'phrase-extract/ExtractionPhrasePair.cpp') 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) { -- cgit v1.2.3