From b8f314dddda3d440164e4772830e3c951ba06ee4 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 10 Dec 2010 13:00:04 -0500 Subject: extract kbest alignments --- decoder/kbest.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'decoder/kbest.h') diff --git a/decoder/kbest.h b/decoder/kbest.h index 3eb8707b..03a8311c 100644 --- a/decoder/kbest.h +++ b/decoder/kbest.h @@ -12,9 +12,9 @@ namespace KBest { // default, don't filter any derivations from the k-best list + template struct NoFilter { - bool operator()(const std::vector& yield) { - (void) yield; + bool operator()(const Dummy&) { return false; } }; @@ -32,7 +32,7 @@ namespace KBest { // the lazy k-best algorithm (Algorithm 3) from Huang and Chiang (IWPT 2005) template, typename WeightType = prob_t, typename WeightFunction = EdgeProb> struct KBestDerivations { -- cgit v1.2.3