From ca9b58716214148eeaeaa3076e1a1dc8f8bb5892 Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Mon, 26 Aug 2013 20:12:32 -0400 Subject: Improve the package structure of pycdec This change should not break anything, but now you can run: python setup.py build_ext --inplace and use the cleaner: PYTHONPATH=/path/to/cdec/python python -m ... --- python/src/kbest.pxd | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 python/src/kbest.pxd (limited to 'python/src/kbest.pxd') diff --git a/python/src/kbest.pxd b/python/src/kbest.pxd deleted file mode 100644 index 44ecfbab..00000000 --- a/python/src/kbest.pxd +++ /dev/null @@ -1,20 +0,0 @@ -from libcpp.vector cimport vector -from utils cimport WordID -from hypergraph cimport Hypergraph - -cdef extern from "decoder/viterbi.h": - cdef cppclass ESentenceTraversal: - pass - cdef cppclass ETreeTraversal: - pass - cdef cppclass FTreeTraversal: - pass - cdef cppclass FeatureVectorTraversal: - pass - -cdef extern from "decoder/kbest.h" namespace "KBest": - cdef cppclass KBestDerivations[T, Traversal]: - cppclass Derivation: - T _yield "yield" - KBestDerivations(Hypergraph& hg, unsigned k) nogil - Derivation* LazyKthBest(unsigned v, unsigned k) nogil -- cgit v1.2.3