diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-24 18:55:17 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-24 18:55:17 +0400 |
commit | d5d4051d8b34c0466868edf4edfa67ca08a4d74d (patch) | |
tree | 27523384a7c257d9ce590902d6ea1f786dc34938 /moses/Sentence.h | |
parent | 7380d12af777e03f3f5a775f120ed4c562022eeb (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.h | 4 |
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; |