diff options
author | Chris Dyer <redpony@gmail.com> | 2010-02-18 22:34:17 -0500 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2010-02-18 22:34:17 -0500 |
commit | 3a7bca942d838f945c1cd0cbe5977e20c61ebc2d (patch) | |
tree | a713b450318143a1042d47d4ab73943c9931ff90 /decoder/fdict.h | |
parent | 4d47dbd7da0434de67ac619392d516c678e1f2ca (diff) |
check in modified ones too
Diffstat (limited to 'decoder/fdict.h')
-rw-r--r-- | decoder/fdict.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/fdict.h b/decoder/fdict.h index d05f1706..c4236580 100644 --- a/decoder/fdict.h +++ b/decoder/fdict.h @@ -20,6 +20,9 @@ struct FD { static inline const std::string& Convert(const WordID& w) { return dict_.Convert(w); } + // Escape any string to a form that can be used as the name + // of a weight in a weights file + static std::string Escape(const std::string& s); static Dict dict_; private: static bool frozen_; |