From 03799a2d330c6dbbe12154d4bcea236210b4f6ed 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/lattice.pxd | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 python/src/lattice.pxd (limited to 'python/src/lattice.pxd') diff --git a/python/src/lattice.pxd b/python/src/lattice.pxd deleted file mode 100644 index 8ad710e5..00000000 --- a/python/src/lattice.pxd +++ /dev/null @@ -1,20 +0,0 @@ -from libcpp.vector cimport vector -from libcpp.string cimport string -from utils cimport WordID - -cdef extern from "decoder/lattice.h": - cdef cppclass LatticeArc: - WordID label - double cost - int dist2next - LatticeArc() - LatticeArc(WordID w, double c, int i) - - cdef cppclass Lattice(vector): # (vector[vector[LatticeArc]]) - Lattice() - bint IsSentence() - vector[LatticeArc]& operator[](unsigned) - void resize(unsigned) - -cdef extern from "decoder/lattice.h" namespace "LatticeTools": - void ConvertTextOrPLF(string& text, Lattice* pl) -- cgit v1.2.3