diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-06-23 15:54:38 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-06-23 15:54:38 -0400 |
commit | 6a2bbfa9b28f8be2189744beb89a975bc3da128f (patch) | |
tree | 4d9ee4e0b6d2c37be8f8a4e05472cd21e66d0ffd /python/src/kbest.pxd | |
parent | b9266b068a37dc46f8de813c59ffbef2e4b89280 (diff) | |
parent | b738e349be490c24d3604c224f44fc54e16d3d7b (diff) |
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/src/kbest.pxd')
-rw-r--r-- | python/src/kbest.pxd | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/src/kbest.pxd b/python/src/kbest.pxd index e339714a..f34ac5ed 100644 --- a/python/src/kbest.pxd +++ b/python/src/kbest.pxd @@ -1,16 +1,18 @@ from libcpp.vector cimport vector from utils cimport WordID -cimport hypergraph +from hypergraph cimport Hypergraph cdef extern from "decoder/viterbi.h": cdef cppclass ESentenceTraversal: pass cdef cppclass ETreeTraversal: pass + cdef cppclass FTreeTraversal: + pass cdef extern from "decoder/kbest.h" namespace "KBest": cdef cppclass KBestDerivations[T, Traversal]: cppclass Derivation: T _yield "yield" - KBestDerivations(hypergraph.Hypergraph hg, unsigned k) + KBestDerivations(Hypergraph& hg, unsigned k) Derivation* LazyKthBest(unsigned v, unsigned k) |