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 <hieu@hoang.co.uk>2013-08-09 00:29:22 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-09 00:29:22 +0400
commit59e7a179cafd61aaaefd1ec91e248617d40e14bc (patch)
treedb6b101bfbbbd8b265e73e9dd61d58657e8647a9 /moses/ChartTranslationOptionList.h
parent15132a04aab28bc01200652a1ca06be528523fda (diff)
add InputPath objects of chart decoding. Start on lattice input for chart decoding
Diffstat (limited to 'moses/ChartTranslationOptionList.h')
-rw-r--r--moses/ChartTranslationOptionList.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/moses/ChartTranslationOptionList.h b/moses/ChartTranslationOptionList.h
index a2979fcbc..daa9d05ba 100644
--- a/moses/ChartTranslationOptionList.h
+++ b/moses/ChartTranslationOptionList.h
@@ -30,12 +30,14 @@ namespace Moses
class TargetPhraseCollection;
class WordsRange;
+class InputType;
+class InputPath;
//! a vector of translations options for a specific range, in a specific sentence
class ChartTranslationOptionList : public ChartParserCallback
{
public:
- ChartTranslationOptionList(size_t);
+ ChartTranslationOptionList(size_t ruleLimit, const InputType &input);
~ChartTranslationOptionList();
const ChartTranslationOptions &Get(size_t i) const {
@@ -74,6 +76,13 @@ private:
size_t m_size;
float m_scoreThreshold;
const size_t m_ruleLimit;
+
+ // input paths
+ typedef std::vector< std::vector<InputPath*> > InputPathMatrix;
+ InputPathMatrix m_inputPathMatrix; /*< contains translation options */
+
+ InputPath &GetInputPath(size_t startPos, size_t endPos);
+
};
}