diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-11 20:07:45 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-11 20:07:45 +0300 |
commit | f247e26fed78347cfcaeb8f82b8db6b50feff3f8 (patch) | |
tree | ce29bcefd75605890ffbc90f0a0ccd1e869bcc6d /moses/Phrase.h | |
parent | fbfe5890d13760a6610abaf2b1797dc1db5cc9f4 (diff) |
More options refactoring (OOV Handling this time).
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r-- | moses/Phrase.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/moses/Phrase.h b/moses/Phrase.h index fa9487e33..4842def97 100644 --- a/moses/Phrase.h +++ b/moses/Phrase.h @@ -35,6 +35,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "util/string_piece.hh" #include "util/exception.hh" +#include "parameters/AllOptions.h" namespace Moses { @@ -200,9 +201,12 @@ public: Phrase GetSubString(const Range &range) const; Phrase GetSubString(const Range &range, FactorType factorType) const; - //! return a string rep of the phrase. Each factor is separated by the factor delimiter as specified in StaticData class - std::string GetStringRep(const std::vector<FactorType> factorsToPrint) const; - + //! return a string rep of the phrase; + // w/ factors delimited by FactorDelimiter + std::string + GetStringRep(std::vector<FactorType> const& factorsToPrint, + AllOptions const* opts=NULL) const; + TO_STRING(); |