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-07-28 21:27:12 +0400
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-07-28 21:27:12 +0400
commit3a5dee12e85282132c20c7fe2ca649c00bf7e78f (patch)
treedba9a37072674f869451ecef58e18a8777fbcedd /phrase-extract/ExtractionPhrasePair.h
parent061aac9e3b8a26b4019b342e25cfc4295c3dfd1c (diff)
implementation of phrase orientation in GHKM extraction
(...but a corresponding feature function for the chart-based decoder has not been written yet)
Diffstat (limited to 'phrase-extract/ExtractionPhrasePair.h')
-rw-r--r--phrase-extract/ExtractionPhrasePair.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/phrase-extract/ExtractionPhrasePair.h b/phrase-extract/ExtractionPhrasePair.h
index ba23ac1f2..e0f5dc5fb 100644
--- a/phrase-extract/ExtractionPhrasePair.h
+++ b/phrase-extract/ExtractionPhrasePair.h
@@ -131,6 +131,12 @@ public:
boost::unordered_map<std::string, boost::unordered_map<std::string,float>* >& sourceRHSAndLHSJointCounts,
Vocabulary &vcbT) const;
+ void CollectAllPhraseOrientations(const std::string &key,
+ const std::vector<float> &orientationClassPriorsL2R,
+ const std::vector<float> &orientationClassPriorsR2L,
+ double smoothingFactor,
+ std::ostream &out) const;
+
void AddProperties( const std::string &str, float count );
void AddProperty( const std::string &key, const std::string &value, float count )