mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-30 15:34:01 +03:00
60e56efc6b
And remove some (near-)duplicate code from pcfg-common and score-stsg.
21 lines
340 B
C++
21 lines
340 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace MosesTraining {
|
|
namespace Syntax {
|
|
|
|
class Exception {
|
|
public:
|
|
Exception(const char *msg) : msg_(msg) {}
|
|
Exception(const std::string &msg) : msg_(msg) {}
|
|
|
|
const std::string &msg() const { return msg_; }
|
|
|
|
private:
|
|
std::string msg_;
|
|
};
|
|
|
|
} // namespace Syntax
|
|
} // namespace MosesTraining
|