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
commit22522d9bc36192c3b1fc35aa165e80c517469592 (patch)
treedf796f924282bef2a977abe02a10500f6e5898d8 /decoder
parent3d15b89fb78a0dc22b1879e491b781044b6b5f9a (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");