From 91727ef8fa46ffda8a6dd9a70d2e9b707f098402 Mon Sep 17 00:00:00 2001 From: "graehl@gmail.com" Date: Mon, 9 Aug 2010 06:18:42 +0000 Subject: ComputeEdgeViterbi git-svn-id: https://ws10smt.googlecode.com/svn/trunk@495 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/hg.cc | 4 +++- decoder/viterbi.cc | 2 +- decoder/weights-fsa | 13 +++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 decoder/weights-fsa diff --git a/decoder/hg.cc b/decoder/hg.cc index 1e2a0010..8a6c8228 100644 --- a/decoder/hg.cc +++ b/decoder/hg.cc @@ -70,7 +70,9 @@ prob_t Hypergraph::ComputeEdgeViterbi(EdgeProbs *ev) const { } prob_t Hypergraph::ComputeEdgeViterbi(NodeProbs const& nv,EdgeProbs *ev) const { - for (int i=0;iresize(ne); + for (int i=0;i(hg).ViterbiSortInEdges(); - o<