summaryrefslogtreecommitdiff
path: root/utils/fdict.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-07-27 00:03:35 +0200
committerPatrick Simianer <p@simianer.de>2011-09-23 19:13:57 +0200
commit05c41075d0018ca6142f7ba593742fbadfecdf65 (patch)
treedbcc5d241eb92691b26ea12d5a07646a6a0201c6 /utils/fdict.h
parent1ee85918c6aaaf0ca9d72f7b876ba18e0c531b3e (diff)
hacking in weights setting, getting
Diffstat (limited to 'utils/fdict.h')
-rw-r--r--utils/fdict.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/fdict.h b/utils/fdict.h
index f9673023..70315a38 100644
--- a/utils/fdict.h
+++ b/utils/fdict.h
@@ -11,6 +11,10 @@ struct FD {
static void Freeze() {
frozen_ = true;
}
+ static void UnFreeze() {
+ frozen_ = false;
+ }
+
static inline int NumFeats() {
return dict_.max() + 1;
}