diff options
author | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-15 04:08:59 +0000 |
---|---|---|
committer | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-15 04:08:59 +0000 |
commit | 541915be79d90329f40381ef75c98c794ea0298c (patch) | |
tree | 197f5b99107d7487c39d5b46b8bc243c6a19cc2a /decoder/hg_cfg.h | |
parent | 695ee5c0b87365857925ecb53a45b97ba4582974 (diff) |
cfg test
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@552 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg_cfg.h')
-rwxr-xr-x | decoder/hg_cfg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/decoder/hg_cfg.h b/decoder/hg_cfg.h index 0a3eb53c..64a0e767 100755 --- a/decoder/hg_cfg.h +++ b/decoder/hg_cfg.h @@ -7,12 +7,14 @@ 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; } + HgCFG(Hypergraph const& ih) : ih(ih) { have_cfg=binarized=false;have_features=false; } Hypergraph const& ih; CFG cfg; bool have_cfg; + bool have_features; + bool want_features; void InitCFG(CFG &to) { - to.Init(ih,true,false,true); + to.Init(ih,true,want_features,true); } bool binarized; CFG &GetCFG() |