diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-15 02:42:30 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-15 02:42:30 +0400 |
commit | 8c6344c4ceed863c8afecd68ed0f6dc1fa22a7c8 (patch) | |
tree | a614a0479d556b3329070eada98ece5f8413359b /moses/TranslationOptionCollectionText.h | |
parent | 3516ef42b8727032db88ead8099ee1f66e3aa10f (diff) |
segment confusion network in class TranslationOptionCollectionConfusionNet, rather than in PDAImp. Get ready to make it work with any phrase table
Diffstat (limited to 'moses/TranslationOptionCollectionText.h')
-rw-r--r-- | moses/TranslationOptionCollectionText.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/moses/TranslationOptionCollectionText.h b/moses/TranslationOptionCollectionText.h index 49ffefb6a..853f47429 100644 --- a/moses/TranslationOptionCollectionText.h +++ b/moses/TranslationOptionCollectionText.h @@ -22,7 +22,9 @@ 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 { @@ -35,14 +37,15 @@ class Sentence; class TranslationOptionCollectionText : public TranslationOptionCollection { public: - void ProcessUnknownWord(size_t sourcePos); - - TranslationOptionCollectionText(Sentence const& inputSentence, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); + TranslationOptionCollectionText(Sentence const& input, size_t maxNoTransOptPerCoverage, float translationOptionThreshold); + void ProcessUnknownWord(size_t sourcePos); bool HasXmlOptionsOverlappingRange(size_t startPosition, size_t endPosition) const; - void CreateXmlOptionsForRange(size_t startPosition, size_t endPosition); + const Phrase &GetPhrase(size_t startPos, size_t endPos) const; +protected: + std::vector<std::vector<Phrase> > m_collection; }; |