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 <fishandfrolick@gmail.com>2013-06-15 02:42:30 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2013-06-15 02:42:30 +0400
commit8c6344c4ceed863c8afecd68ed0f6dc1fa22a7c8 (patch)
treea614a0479d556b3329070eada98ece5f8413359b /moses/TranslationOptionCollectionText.h
parent3516ef42b8727032db88ead8099ee1f66e3aa10f (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.h11
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;
};