diff options
author | armatthews <armatthe@cmu.edu> | 2014-05-17 14:52:56 -0400 |
---|---|---|
committer | armatthews <armatthe@cmu.edu> | 2014-05-17 14:52:56 -0400 |
commit | 575284e1fa290e03eb3fe8804f21e83214feca0a (patch) | |
tree | 0480e99a64e67a5ff31f0ea8c1e9fb2f0f187edb /python/cdec/kbest.pxd | |
parent | 025ecf4978e37e4b5aa31e4ac3c7953a29a89b07 (diff) |
Added methods for retrieving unique k-best lists from hypergraphs
Diffstat (limited to 'python/cdec/kbest.pxd')
-rw-r--r-- | python/cdec/kbest.pxd | 8 |
1 files changed, 7 insertions, 1 deletions
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 |