diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-03 15:03:09 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-03 15:03:09 +0400 |
commit | 8ccc99a94712d2f650fb2d8a73bcc658b0aa93ec (patch) | |
tree | 29e4c17e13d177d804ccc9dace45ba34c46dfe85 /moses/TranslationOptionCollectionLattice.h | |
parent | 6759af3821efa10ebf0cdf329604bdaed9f4070b (diff) |
correct creation of input paths for lattices
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.h')
-rw-r--r-- | moses/TranslationOptionCollectionLattice.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/moses/TranslationOptionCollectionLattice.h b/moses/TranslationOptionCollectionLattice.h index 9644f743e..e8ae2310a 100644 --- a/moses/TranslationOptionCollectionLattice.h +++ b/moses/TranslationOptionCollectionLattice.h @@ -7,10 +7,10 @@ namespace Moses { -class ConfusionNet; +class WordLattice; -/** Holds all translation options, for all spans, of a particular confusion network input - * Inherited from TranslationOptionCollection. +/** Holds all translation options, for all spans, of a lattice input. NOT confusion networks + * No legacy phrase-tables, CANNOT be used with Zen's binary phrase-table. */ class TranslationOptionCollectionLattice : public TranslationOptionCollection { @@ -28,14 +28,8 @@ protected: , bool adhereTableLimit , size_t graphInd); - void CreateTranslationOptionsForRangeLEGACY(const DecodeGraph &decodeStepList - , size_t startPosition - , size_t endPosition - , bool adhereTableLimit - , size_t graphInd); - public: - TranslationOptionCollectionLattice(const ConfusionNet &source, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); + TranslationOptionCollectionLattice(const WordLattice &source, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); void ProcessUnknownWord(size_t sourcePos); void CreateTranslationOptions(); |