diff options
author | Patrick Simianer <p@simianer.de> | 2013-11-28 19:40:24 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-11-28 19:40:24 +0100 |
commit | 85aa5ba3ece9b5f49c5b5805e1100c72ccd14282 (patch) | |
tree | 1cfeb39a78b87298e911587a1fdf58406671535e /training/dtrain | |
parent | a5b4f06838585874f200c94028cd4d41d54c4f76 (diff) |
fixed PRO sampling
Diffstat (limited to 'training/dtrain')
-rw-r--r-- | training/dtrain/pairsampling.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/training/dtrain/pairsampling.h b/training/dtrain/pairsampling.h index 3f67e209..1a3c498c 100644 --- a/training/dtrain/pairsampling.h +++ b/training/dtrain/pairsampling.h @@ -112,6 +112,7 @@ _PRO_cmp_pair_by_diff_d(pair<ScoredHyp,ScoredHyp> a, pair<ScoredHyp,ScoredHyp> b inline void PROsampling(vector<ScoredHyp>* s, vector<pair<ScoredHyp,ScoredHyp> >& training, score_t threshold, unsigned max, bool _unused=false, float _also_unused=0) { + sort(s->begin(), s->end(), cmp_hyp_by_score_d); unsigned max_count = 5000, count = 0, sz = s->size(); bool b = false; for (unsigned i = 0; i < sz-1; i++) { |