summaryrefslogtreecommitdiff
path: root/decoder/cdec.cc
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/cdec.cc
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/cdec.cc')
-rw-r--r--decoder/cdec.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/cdec.cc b/decoder/cdec.cc
index 9696fb69..8c4a25e0 100644
--- a/decoder/cdec.cc
+++ b/decoder/cdec.cc
@@ -380,7 +380,6 @@ void show_models(po::variables_map const& conf,ModelSet &ms,char const* header)
ms.show_features(cerr,cerr,conf.count("warn_0_weight"));
}
-
template <class V>
bool store_conf(po::variables_map const& conf,std::string const& name,V *v) {
if (conf.count(name)) {
@@ -642,6 +641,8 @@ int main(int argc, char** argv) {
maybe_prune(forest,conf,"prelm_beam_prune","prelm_density_prune","-LM",srclen);
+ cfg_options.maybe_output_source(forest);
+
bool has_late_models = !late_models.empty();
if (has_late_models) {
Timer t("Forest rescoring:");