From 575284e1fa290e03eb3fe8804f21e83214feca0a Mon Sep 17 00:00:00 2001 From: armatthews Date: Sat, 17 May 2014 14:52:56 -0400 Subject: Added methods for retrieving unique k-best lists from hypergraphs --- python/cdec/kbest.pxd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'python/cdec/kbest.pxd') diff --git a/python/cdec/kbest.pxd b/python/cdec/kbest.pxd index 44ecfbab..ecf1fc00 100644 --- a/python/cdec/kbest.pxd +++ b/python/cdec/kbest.pxd @@ -13,7 +13,13 @@ cdef extern from "decoder/viterbi.h": pass cdef extern from "decoder/kbest.h" namespace "KBest": - cdef cppclass KBestDerivations[T, Traversal]: + cdef cppclass NoFilter[Dummy]: + pass + + cdef cppclass FilterUnique: + pass + + cdef cppclass KBestDerivations[T, Traversal, Filter]: cppclass Derivation: T _yield "yield" KBestDerivations(Hypergraph& hg, unsigned k) nogil -- cgit v1.2.3