summaryrefslogtreecommitdiff
path: root/vest/lo_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'vest/lo_test.cc')
-rw-r--r--vest/lo_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/vest/lo_test.cc b/vest/lo_test.cc
index 577113bb..9200eb34 100644
--- a/vest/lo_test.cc
+++ b/vest/lo_test.cc
@@ -5,6 +5,7 @@
#include <boost/shared_ptr.hpp>
#include <gtest/gtest.h>
+#include "ces.h"
#include "fdict.h"
#include "hg.h"
#include "kbest.h"
@@ -166,8 +167,8 @@ TEST_F(OptTest, TestS1) {
envs[1] = Inside<ViterbiEnvelope, ViterbiEnvelopeWeightFunction>(hg2, NULL, wf);
vector<ErrorSurface> es(2);
- scorer1->ComputeErrorSurface(envs[0], &es[0], IBM_BLEU, hg);
- scorer2->ComputeErrorSurface(envs[1], &es[1], IBM_BLEU, hg2);
+ ComputeErrorSurface(*scorer1, envs[0], &es[0], IBM_BLEU, hg);
+ ComputeErrorSurface(*scorer2, envs[1], &es[1], IBM_BLEU, hg2);
cerr << envs[0].size() << " " << envs[1].size() << endl;
cerr << es[0].size() << " " << es[1].size() << endl;
envs.clear();