diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-25 07:37:59 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-25 07:37:59 +0000 |
commit | 410cc38baef914cdc0841a2e8d5a84098e48be49 (patch) | |
tree | 5421cec674a71614544ce2705a37e3badc243d70 /decoder/oracle_bleu.h | |
parent | f234fd50ce8a6f8a006b0f770cca5170a55232f9 (diff) |
more comprehensible (but untested) edge/node filtering, awesome per-edge debugging streams
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@407 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/oracle_bleu.h')
-rwxr-xr-x | decoder/oracle_bleu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder/oracle_bleu.h b/decoder/oracle_bleu.h index 4a2cbbe5..fbb681e0 100755 --- a/decoder/oracle_bleu.h +++ b/decoder/oracle_bleu.h @@ -246,7 +246,6 @@ struct OracleBleu { void ReweightBleu(Hypergraph *dest_forest,double bleu_weight=-1.) { feature_weights_.set_value(0,bleu_weight); dest_forest->Reweight(feature_weights_); -// dest_forest->SortInEdgesByEdgeWeights(); } bool show_derivation; @@ -272,7 +271,7 @@ struct OracleBleu { kbest_out<<endl<<flush; if (show_derivation) { deriv_out<<"\nsent_id="<<sent_id<<"\n"; - forest.show_tree(cerr,*d->edge); + deriv_out<<kbest.derivation_tree(*d,true); deriv_out<<flush; } } |