summaryrefslogtreecommitdiff
path: root/decoder/hg_test.cc
diff options
context:
space:
mode:
authorarmatthews <armatthe@cmu.edu>2015-02-04 19:02:18 -0500
committerarmatthews <armatthe@cmu.edu>2015-02-04 19:02:18 -0500
commit71868c10c5930e2d74719ed5cfcbf863a1a4a866 (patch)
tree22bac35b43d15f260544e2b3fa593ab7bd58d429 /decoder/hg_test.cc
parent8957ca4266a31e067fe139acd0b82d669a33287c (diff)
Updated tests for lattice input
Diffstat (limited to 'decoder/hg_test.cc')
-rw-r--r--decoder/hg_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/hg_test.cc b/decoder/hg_test.cc
index ec91cd3b..a597ad8d 100644
--- a/decoder/hg_test.cc
+++ b/decoder/hg_test.cc
@@ -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("LatticeCost"), 1.0);
+ wts.set_value(FD::Convert("LatticeCost_0"), 1.0);
hg.Reweight(wts);
hg.PrintGraphviz();
string outplf = HypergraphIO::AsPLF(hg);