diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-10 06:17:36 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-11 04:09:22 +0300 |
commit | 29694af6e43c1cec7a6fd0b157eb44faca706129 (patch) | |
tree | acda250a83c5a3a4244be011f1f4b9e6337f5d6b /moses/ExportInterface.cpp | |
parent | 240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (diff) |
Code cleanup and refactoring.
Diffstat (limited to 'moses/ExportInterface.cpp')
-rw-r--r-- | moses/ExportInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ExportInterface.cpp b/moses/ExportInterface.cpp index 2fccf3c48..ee5c8a70d 100644 --- a/moses/ExportInterface.cpp +++ b/moses/ExportInterface.cpp @@ -101,7 +101,7 @@ SimpleTranslationInterface::~SimpleTranslationInterface() //the simplified version of string input/output translation string SimpleTranslationInterface::translate(const string &inputString) { - boost::shared_ptr<Moses::IOWrapper> ioWrapper(new IOWrapper(StaticData::Instance().options())); + boost::shared_ptr<Moses::IOWrapper> ioWrapper(new IOWrapper(*StaticData::Instance().options())); // main loop over set of input sentences size_t sentEnd = inputString.rfind('\n'); //find the last \n, the input stream has to be appended with \n to be translated const string &newString = sentEnd != string::npos ? inputString : inputString + '\n'; @@ -180,7 +180,7 @@ batch_run() IFVERBOSE(1) PrintUserTime("Created input-output object"); // set up read/writing class: - boost::shared_ptr<IOWrapper> ioWrapper(new IOWrapper(staticData.options())); + boost::shared_ptr<IOWrapper> ioWrapper(new IOWrapper(*staticData.options())); UTIL_THROW_IF2(ioWrapper == NULL, "Error; Failed to create IO object" << " [" << HERE << "]"); |