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:
authorHieu Hoang <fishandfrolick@gmail.com>2013-06-17 23:23:25 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2013-06-17 23:23:25 +0400
commitc70537dd877ae527e3aa40439682fb35a8e143bb (patch)
tree753929a3d5d3039d7c8cc2de6528bf60c1164194 /moses/TranslationOptionCollection.h
parent4ccb1c9dece4488a0bcb8cda331465a53f9ae296 (diff)
separate retrieving of translation options for sentences from confusion networks/lattices. Ready to optimise for sentences
Diffstat (limited to 'moses/TranslationOptionCollection.h')
-rw-r--r--moses/TranslationOptionCollection.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/moses/TranslationOptionCollection.h b/moses/TranslationOptionCollection.h
index 81e941abc..ddf71f5ee 100644
--- a/moses/TranslationOptionCollection.h
+++ b/moses/TranslationOptionCollection.h
@@ -133,12 +133,21 @@ public:
//! Create all possible translations from the phrase tables
virtual void CreateTranslationOptions();
+
//! Create translation options that exactly cover a specific input span.
+ /** create translation options that exactly cover a specific input span.
+ * Called by CreateTranslationOptions() and ProcessUnknownWord()
+ * \param decodeGraph list of decoding steps
+ * \param factorCollection input sentence with all factors
+ * \param startPos first position in input sentence
+ * \param lastPos last position in input sentence
+ * \param adhereTableLimit whether phrase & generation table limits are adhered to
+ */
virtual void CreateTranslationOptionsForRange(const DecodeGraph &decodeStepList
, size_t startPosition
, size_t endPosition
, bool adhereTableLimit
- , size_t graphInd);
+ , size_t graphInd) = 0;
//!Check if this range has XML options
virtual bool HasXmlOptionsOverlappingRange(size_t startPosition, size_t endPosition) const;