summaryrefslogtreecommitdiff
path: root/decoder/cfg_format.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 01:34:57 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 01:34:57 +0000
commit73afb7c218f7a10c38a58772a1530a7a99047b90 (patch)
tree3518757b81b2fbcdecde1eed46b5683d023b951d /decoder/cfg_format.h
parent991969850eede6eca5c8724484175b1f3c0ddeff (diff)
debug cfg from hg, source and target. cdec --source_cfg_output=-
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@507 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg_format.h')
-rwxr-xr-xdecoder/cfg_format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/cfg_format.h b/decoder/cfg_format.h
index 1066c510..ccf6e3fa 100755
--- a/decoder/cfg_format.h
+++ b/decoder/cfg_format.h
@@ -17,6 +17,7 @@ struct CFGFormat {
std::string nt_prefix;
std::string logprob_feat_name;
std::string partsep;
+ bool goal_nt() const { return !goal_nt_name.empty(); }
template <class Opts> // template to support both printable_opts and boost nonprintable
void AddOptions(Opts *opts) {
//using namespace boost::program_options;