diff options
-rw-r--r-- | moses/TranslationModel/UG/mm/ug_bitext.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/TranslationModel/UG/mm/ug_bitext.h b/moses/TranslationModel/UG/mm/ug_bitext.h index 1b1c95c27..396f2b7dd 100644 --- a/moses/TranslationModel/UG/mm/ug_bitext.h +++ b/moses/TranslationModel/UG/mm/ug_bitext.h @@ -206,6 +206,7 @@ namespace Moses { string docname(id_type const sid) const; + vector<id_type> const* sid2did() const; }; #include "ug_bitext_agenda.h" @@ -222,6 +223,14 @@ namespace Moses { } template<typename Token> + vector<id_type> const* + Bitext<Token>:: + sid2did() const + { + return m_sid2docid.get(); + } + + template<typename Token> sptr<SentenceBias> Bitext<Token>:: loadSentenceBias(string const& fname) const |