diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-03 21:58:45 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-03 21:58:45 +0400 |
commit | f18e35c42a9d07ca11d5fed107f97999076cfae5 (patch) | |
tree | 2d22fc29d93b75bc4e33854e7f655c1cc2cc882f /moses/TranslationOptionCollectionLattice.h | |
parent | a41dbeba46cd9dd0eb0135461464a49e79ac96b5 (diff) |
correct creation of input paths for lattices
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.h')
-rw-r--r-- | moses/TranslationOptionCollectionLattice.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/moses/TranslationOptionCollectionLattice.h b/moses/TranslationOptionCollectionLattice.h index f248b9d4c..11aa3868b 100644 --- a/moses/TranslationOptionCollectionLattice.h +++ b/moses/TranslationOptionCollectionLattice.h @@ -15,22 +15,19 @@ class WordLattice; class TranslationOptionCollectionLattice : public TranslationOptionCollection { protected: - void CreateTranslationOptionsForRangeNew(const DecodeGraph &decodeStepList - , size_t startPosition - , size_t endPosition - , bool adhereTableLimit - , size_t graphInd); + void ProcessUnknownWord(); + void ProcessUnknownWord(size_t sourcePos); public: TranslationOptionCollectionLattice(const WordLattice &source, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); - void ProcessUnknownWord(size_t sourcePos); void CreateTranslationOptions(); + void CreateTranslationOptionsForRange(const DecodeGraph &decodeStepList - , size_t startPosition - , size_t endPosition - , bool adhereTableLimit - , size_t graphInd); + , size_t startPosition + , size_t endPosition + , bool adhereTableLimit + , size_t graphInd); protected: |