diff options
author | Patrick Simianer <p@simianer.de> | 2015-02-26 14:24:41 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-02-26 14:24:41 +0100 |
commit | 29ddfafb0dea599965e6a881c25b396a6db2f40f (patch) | |
tree | 5755ec058361776657041ba088062b086eea6d68 /decoder/hg_test.cc | |
parent | 4223261682388944fe1b1cf31b9d51d88f9ad53b (diff) | |
parent | 03989754cb2511431e1df6001fca41b3806ad461 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'decoder/hg_test.cc')
-rw-r--r-- | decoder/hg_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder/hg_test.cc b/decoder/hg_test.cc index 366b269d..a597ad8d 100644 --- a/decoder/hg_test.cc +++ b/decoder/hg_test.cc @@ -214,8 +214,8 @@ BOOST_AUTO_TEST_CASE(TestIntersect) { BOOST_CHECK_EQUAL(4, best); Lattice target(2); - target[0].push_back(LatticeArc(TD::Convert("a"), 0.0, 1)); - target[1].push_back(LatticeArc(TD::Convert("b"), 0.0, 1)); + target[0].push_back(LatticeArc(TD::Convert("a"), SparseVector<double>(), 1)); + target[1].push_back(LatticeArc(TD::Convert("b"), SparseVector<double>(), 1)); HG::Intersect(target, &hg); hg.PrintGraphviz(); } @@ -256,7 +256,7 @@ BOOST_AUTO_TEST_CASE(PLF) { string inplf = "((('haupt',-2.06655,1),('hauptgrund',-5.71033,2),),(('grund',-1.78709,1),),(('für\\'',0.1,1),),)"; HypergraphIO::ReadFromPLF(inplf, &hg); SparseVector<double> wts; - wts.set_value(FD::Convert("Feature_0"), 1.0); + wts.set_value(FD::Convert("LatticeCost_0"), 1.0); hg.Reweight(wts); hg.PrintGraphviz(); string outplf = HypergraphIO::AsPLF(hg); |