diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-10 23:49:33 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-10 23:49:33 +0000 |
commit | 667675465486e1f9729931c0b38b5a1124a1c000 (patch) | |
tree | 731cbe983050220b995c643421beb04b4e271560 /decoder/cfg_format.h | |
parent | 131c2280809e890a817688b708f03a231025fd77 (diff) |
CFG binarize opts
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@503 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg_format.h')
-rwxr-xr-x | decoder/cfg_format.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/decoder/cfg_format.h b/decoder/cfg_format.h index 169632a6..10361804 100755 --- a/decoder/cfg_format.h +++ b/decoder/cfg_format.h @@ -1,10 +1,10 @@ #ifndef CFG_FORMAT_H #define CFG_FORMAT_H -#include <program_options.h> #include <string> #include "wordid.h" #include "feature_vector.h" +#include "program_options.h" struct CFGFormat { bool identity_scfg; @@ -18,8 +18,8 @@ struct CFGFormat { std::string partsep; template <class Opts> // template to support both printable_opts and boost nonprintable void AddOptions(Opts *opts) { - using namespace boost::program_options; - using namespace std; + //using namespace boost::program_options; + //using namespace std; opts->add_options() ("identity_scfg",defaulted_value(&identity_scfg),"output an identity SCFG: add an identity target side - '[X12] ||| [X13,1] a ||| [1] a ||| feat= ...' - the redundant target '[1] a |||' is omitted otherwise.") ("features",defaulted_value(&features),"print the CFG feature vector") @@ -31,7 +31,7 @@ struct CFGFormat { ("nt_span",defaulted_value(&nt_span),"prefix A(i,j) for NT coming from hypergraph node with category A on span [i,j). this is after --nt_prefix if any") ; } - + void Validate() { } template<class CFG> void print_source_nt(std::ostream &o,CFG const&cfg,int id,int position=1) const { o<<'['; @@ -105,4 +105,5 @@ struct CFGFormat { }; + #endif |