summaryrefslogtreecommitdiff
path: root/python/src/lattice.pxd
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2013-08-26 20:12:32 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2013-08-26 20:12:32 -0400
commit03799a2d330c6dbbe12154d4bcea236210b4f6ed (patch)
tree7adb0bc8dd2987fa32ee1299d8821dd8b7b06706 /python/src/lattice.pxd
parent8b491e57f8a011f4f8496e44bed7eb7a4360bc93 (diff)
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 ...
Diffstat (limited to 'python/src/lattice.pxd')
-rw-r--r--python/src/lattice.pxd20
1 files changed, 0 insertions, 20 deletions
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)