From ead8845217c5e6e48f3680ead6f859ec8e110eb2 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 13 Aug 2010 08:20:47 +0000 Subject: (NEEDS TESTING) cfg index rules->nts, sort by prob, remove duplicates keeping highest prob, topo sort (and after binarize topo sort). beginning to apply_fsa_models (PrefixTrieNode) git-svn-id: https://ws10smt.googlecode.com/svn/trunk@539 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/inside_outside.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'decoder/inside_outside.h') diff --git a/decoder/inside_outside.h b/decoder/inside_outside.h index e3bd4592..73d4ec6a 100644 --- a/decoder/inside_outside.h +++ b/decoder/inside_outside.h @@ -27,7 +27,7 @@ struct Boolean { // score for each node // NOTE: WeightType() must construct the semiring's additive identity // WeightType(1) must construct the semiring's multiplicative identity -template +template WeightType Inside(const Hypergraph& hg, std::vector* result = NULL, const WeightFunction& weight = WeightFunction()) { @@ -58,7 +58,7 @@ WeightType Inside(const Hypergraph& hg, return inside_score.back(); } -template +template void Outside(const Hypergraph& hg, std::vector& inside_score, std::vector* result, @@ -179,7 +179,7 @@ struct InsideOutsides { // NOTE: XType * KType must be valid (and yield XType) // NOTE: This may do things slightly differently than you are used to, please // read the description in Li and Eisner (2009) carefully! -template +template KType InsideOutside(const Hypergraph& hg, XType* result_x, const KWeightFunction& kwf = KWeightFunction(), -- cgit v1.2.3