From fa8d794f2d4963b44ea4017d24c50c337be8c1a5 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sat, 23 Apr 2011 01:15:07 -0400 Subject: fixes --- decoder/hg_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder/hg_test.cc') diff --git a/decoder/hg_test.cc b/decoder/hg_test.cc index d934036f..3be5b82d 100644 --- a/decoder/hg_test.cc +++ b/decoder/hg_test.cc @@ -327,8 +327,8 @@ TEST_F(HGTest,TestAddExpectations) { SparseVector feat_exps; prob_t z = InsideOutside, EdgeFeaturesAndProbWeightFunction>(hg, &feat_exps); - EXPECT_FLOAT_EQ(-2.5439765, feat_exps[FD::Convert("f1")] / z); - EXPECT_FLOAT_EQ(-2.6357865, feat_exps[FD::Convert("f2")] / z); + EXPECT_FLOAT_EQ(-2.5439765, feat_exps.value(FD::Convert("f1")) / z); + EXPECT_FLOAT_EQ(-2.6357865, feat_exps.value(FD::Convert("f2")) / z); cerr << feat_exps << endl; cerr << "Z=" << z << endl; } -- cgit v1.2.3