diff options
author | Taku Kudo <taku@google.com> | 2018-08-01 11:18:02 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2018-08-01 11:18:02 +0300 |
commit | aff191399d9cdb003b8c342527c65769ff62f49c (patch) | |
tree | 2ec8d04a554f6a8d18d2936290a31a383044aa86 /src/model_interface.cc | |
parent | 7e066ecb79685eab4b32f4882df9b172462593b6 (diff) |
Minor fixes for windows
Diffstat (limited to 'src/model_interface.cc')
-rw-r--r-- | src/model_interface.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model_interface.cc b/src/model_interface.cc index 2e9d685..0a99e02 100644 --- a/src/model_interface.cc +++ b/src/model_interface.cc @@ -70,10 +70,10 @@ std::string PrefixMatcher::GlobalReplace(absl::string_view w, return result; } -const char ModelInterface::kUNK[] = "<unk>"; -const char ModelInterface::kBOS[] = "<s>"; -const char ModelInterface::kEOS[] = "</s>"; -const char ModelInterface::kPAD[] = "<pad>"; +const char *ModelInterface::kUNK() { return "<unk>"; } +const char *ModelInterface::kBOS() { return "<s>"; } +const char *ModelInterface::kEOS() { return "</s>"; } +const char *ModelInterface::kPAD() { return "<pad>"; }; ModelInterface::ModelInterface(const ModelProto &model_proto) : model_proto_(&model_proto), status_(util::OkStatus()) {} |