diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2012-10-24 13:37:52 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2012-10-24 13:37:52 +0400 |
commit | 507b49e0f58bbc1b338ba66aa13d0b3fda546268 (patch) | |
tree | 22b7adb541244f1f5ea1444667b8d911a9520867 /misc | |
parent | fb8eb0d11196f02e1a5cdcbf2132bbf3680657ce (diff) |
fix marcin's querying of compact rule table
Diffstat (limited to 'misc')
-rw-r--r-- | misc/queryPhraseTableMin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/queryPhraseTableMin.cpp b/misc/queryPhraseTableMin.cpp index de31fb6b9..8958017ea 100644 --- a/misc/queryPhraseTableMin.cpp +++ b/misc/queryPhraseTableMin.cpp @@ -85,9 +85,9 @@ int main(int argc, char **argv) if(useAlignments) std::cout << " " << tp.GetAlignTerm() << "|||"; - size_t offset = tp.GetScoreBreakdown().size() - nscores; - for(size_t i = offset; i < tp.GetScoreBreakdown().size(); i++) - std::cout << " " << exp(tp.GetScoreBreakdown()[i]); + std::vector<float> scores = tp.GetScoreBreakdown().GetScoresForProducer(&pdf); + for(size_t i = 0; i < scores.size(); i++) + std::cout << " " << exp(scores[i]); std::cout << std::endl; } } |