summaryrefslogtreecommitdiff
path: root/decoder/hg_cfg.h
diff options
context:
space:
mode:
authorgraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-15 07:39:01 +0000
committergraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-15 07:39:01 +0000
commit6d3cf2f3aeaa5d008f5031f70da8d728181486bc (patch)
tree69b0d6e35b65075ddfeb97a7fbf85f87ec513dfe /decoder/hg_cfg.h
parentc142f3bde0fa673ddb3f6fc7ed3d08e71f8ff8eb (diff)
really fixed binarization. test
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@555 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg_cfg.h')
-rwxr-xr-xdecoder/hg_cfg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/decoder/hg_cfg.h b/decoder/hg_cfg.h
index 64a0e767..ba936990 100755
--- a/decoder/hg_cfg.h
+++ b/decoder/hg_cfg.h
@@ -7,7 +7,9 @@ class Hypergraph;
// in case you might want the CFG whether or not you apply FSA models:
struct HgCFG {
- HgCFG(Hypergraph const& ih) : ih(ih) { have_cfg=binarized=false;have_features=false; }
+ HgCFG(Hypergraph const& ih) : ih(ih) {
+ have_cfg=binarized=have_features=uniqed=false;
+ }
Hypergraph const& ih;
CFG cfg;
bool have_cfg;
@@ -17,6 +19,7 @@ struct HgCFG {
to.Init(ih,true,want_features,true);
}
bool binarized;
+ bool uniqed;
CFG &GetCFG()
{
if (!have_cfg) {