diff options
author | Patrick Simianer <p@simianer.de> | 2011-10-19 20:56:22 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-10-19 20:56:22 +0200 |
commit | 967e1c98980b07909b03ff5e3e71442cbeb216e8 (patch) | |
tree | 37149761e897ba48a3c40456347ff1df3bd24d79 /dtrain/kbestget.h | |
parent | 9beaeb42b71fa504bfa41a402cb17eb6ac4001af (diff) |
merged, compiles but not working
Diffstat (limited to 'dtrain/kbestget.h')
-rw-r--r-- | dtrain/kbestget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dtrain/kbestget.h b/dtrain/kbestget.h index d141da60..4aadee7a 100644 --- a/dtrain/kbestget.h +++ b/dtrain/kbestget.h @@ -7,6 +7,7 @@ #include "ff_register.h" #include "decoder.h" #include "weights.h" +#include "logval.h" using namespace std; @@ -106,7 +107,8 @@ struct KBestGetter : public HypSampler ScoredHyp h; h.w = d->yield; h.f = d->feature_values; - h.model = log(d->score); + h.model = d->score; + cout << i << ". "<< h.model << endl; h.rank = i; h.score = scorer_->Score(h.w, *ref_, i); s_.push_back(h); @@ -125,7 +127,7 @@ struct KBestGetter : public HypSampler ScoredHyp h; h.w = d->yield; h.f = d->feature_values; - h.model = log(d->score); + h.model = -1*log(d->score); h.rank = i; h.score = scorer_->Score(h.w, *ref_, i); s_.push_back(h); |