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 <hieu@hoang.co.uk>2013-07-24 18:55:17 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-07-24 18:55:17 +0400
commitd5d4051d8b34c0466868edf4edfa67ca08a4d74d (patch)
tree27523384a7c257d9ce590902d6ea1f786dc34938 /moses/Sentence.h
parent7380d12af777e03f3f5a775f120ed4c562022eeb (diff)
create target phrases, not Translation Options, for XML. Can be used in both pb and scfg
Diffstat (limited to 'moses/Sentence.h')
-rw-r--r--moses/Sentence.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/Sentence.h b/moses/Sentence.h
index c341079a4..f3ce0d68c 100644
--- a/moses/Sentence.h
+++ b/moses/Sentence.h
@@ -36,6 +36,7 @@ class WordsRange;
class PhraseDictionary;
class TranslationOption;
class TranslationOptionCollection;
+class ChartTranslationOptions;
class XmlOption;
@@ -46,7 +47,7 @@ class XmlOption;
class Sentence : public Phrase, public InputType
{
-private:
+protected:
/**
* Utility method that takes in a string representing an XML tag and the name of the attribute,
@@ -89,6 +90,7 @@ public:
//! populates vector argument with XML force translation options for the specific range passed
void GetXmlTranslationOptions(std::vector <TranslationOption*> &list, size_t startPos, size_t endPos) const;
+ std::vector <ChartTranslationOptions*> GetXmlChartTranslationOptions() const;
int Read(std::istream& in,const std::vector<FactorType>& factorOrder);
void Print(std::ostream& out) const;