diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-21 04:17:17 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-21 04:17:17 +0400 |
commit | d4837fd80c54f5e6d4dd5fd6ec21a7d0aea3423d (patch) | |
tree | 0fe59462595f85cfd67a6b37eb0102e1606080c3 /moses/TranslationOptionCollectionText.h | |
parent | d68277d369b599f6d6acf5bf651c638709cbe2a3 (diff) |
rollback
Diffstat (limited to 'moses/TranslationOptionCollectionText.h')
-rw-r--r-- | moses/TranslationOptionCollectionText.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/moses/TranslationOptionCollectionText.h b/moses/TranslationOptionCollectionText.h index 507853d3e..09e1d78c0 100644 --- a/moses/TranslationOptionCollectionText.h +++ b/moses/TranslationOptionCollectionText.h @@ -22,9 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #ifndef moses_TranslationOptionCollectionText_h #define moses_TranslationOptionCollectionText_h -#include <vector> #include "TranslationOptionCollection.h" -#include "Phrase.h" namespace Moses { @@ -37,23 +35,18 @@ class Sentence; class TranslationOptionCollectionText : public TranslationOptionCollection { public: - TranslationOptionCollectionText(Sentence const& input, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); - void ProcessUnknownWord(size_t sourcePos); + + TranslationOptionCollectionText(Sentence const& inputSentence, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); + bool HasXmlOptionsOverlappingRange(size_t startPosition, size_t endPosition) const; + void CreateXmlOptionsForRange(size_t startPosition, size_t endPosition); - const InputLatticeNode &GetPhrase(size_t startPos, size_t endPos) const; -protected: - std::vector<std::vector<InputLatticeNode> > m_collection; - void CreateTranslationOptionsForRange(const DecodeGraph &decodeStepList - , size_t startPosition - , size_t endPosition - , bool adhereTableLimit - , size_t graphInd); }; } #endif + |