summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-04-27 14:50:54 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-04-27 14:50:54 -0400
commit01cd1165ffc6f592067844a2103bd9e135a69fe3 (patch)
treee9f06711dc93c758ba8f0c99d4261b73c513ceb5 /decoder
parent8f8410771a0d3f2ca0f1aa4f404d440e3133b672 (diff)
get rid of bad constructor
Diffstat (limited to 'decoder')
-rw-r--r--decoder/decoder.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc
index ae20d25f..d2b64285 100644
--- a/decoder/decoder.cc
+++ b/decoder/decoder.cc
@@ -544,9 +544,6 @@ DecoderImpl::DecoderImpl(po::variables_map& conf, int argc, char** argv, istream
w_init_weights.InitFromFile(str("weights",conf));
w_init_weights.InitVector(&init_weights);
init_weights.resize(FD::NumFeats());
-
- if (show_weights)
- cerr << "Initial weights: " << WeightVector(init_weights)<<endl;
}
// cube pruning pop-limit: we may want to configure this on a per-pass basis
@@ -900,7 +897,8 @@ bool DecoderImpl::Decode(const string& input, DecoderObserver* o) {
// Oracle Rescoring
if(get_oracle_forest) {
- Oracle oc=oracle.ComputeOracle(smeta,&forest,FeatureVector(last_weights),10,conf["forest_output"].as<std::string>());
+ assert(!"this is broken"); FeatureVector dummy; // = last_weights
+ Oracle oc=oracle.ComputeOracle(smeta,&forest,dummy,10,conf["forest_output"].as<std::string>());
if (!SILENT) cerr << " +Oracle BLEU forest (nodes/edges): " << forest.nodes_.size() << '/' << forest.edges_.size() << endl;
if (!SILENT) cerr << " +Oracle BLEU (paths): " << forest.NumberOfPaths() << endl;
oc.hope.Print(cerr," +Oracle BLEU");