summaryrefslogtreecommitdiff
path: root/decoder/fdict.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/fdict.h')
-rw-r--r--decoder/fdict.h3
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_;