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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-10-24 03:37:50 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-10-24 03:37:50 +0300
commit6b54eb44a2c199c8de0b030071808aa2a293e01a (patch)
tree83f392a467fd2503abdae83992e1b4dd3a48d72c /moses/Sentence.h
parentfc6b000e88bd652fc06fbd4218a278861b282261 (diff)
Store document-level translation meta-information provided in the input on the Sentence object.
Diffstat (limited to 'moses/Sentence.h')
-rw-r--r--moses/Sentence.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/moses/Sentence.h b/moses/Sentence.h
index 661280711..5027fd76d 100644
--- a/moses/Sentence.h
+++ b/moses/Sentence.h
@@ -60,6 +60,8 @@ protected:
void ProcessPlaceholders(const std::vector< std::pair<size_t, std::string> > &placeholders);
+ // "Document Level Translation" instructions, see aux_interpret_dlt
+ std::vector<std::map<std::string,std::string> > m_dlt_meta;
public:
Sentence();
@@ -114,6 +116,11 @@ public:
void
init(std::string line, std::vector<FactorType> const& factorOrder);
+ std::vector<std::map<std::string,std::string> > const&
+ GetDltMeta() const {
+ return m_dlt_meta;
+ }
+
private:
// auxliliary functions for Sentence initialization
// void aux_interpret_sgml_markup(std::string& line);