summaryrefslogtreecommitdiff
path: root/python/src/lattice.pxd
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-08-14 22:50:37 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-08-14 22:50:37 -0400
commita68aaea190197f17f308b91f66ceff222a784460 (patch)
tree214e557c94f255e88b19803cb3b5343983613a60 /python/src/lattice.pxd
parent2d921d0cb937c3a2fa1bf8f4aa37be762227be63 (diff)
[cdec.sa] Explicit feature names in grammar extractor output
+ sparse features in extractor + hg.intersect(string) + basestring = str|unicode
Diffstat (limited to 'python/src/lattice.pxd')
-rw-r--r--python/src/lattice.pxd5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/src/lattice.pxd b/python/src/lattice.pxd
index 3a4bc22f..8ad710e5 100644
--- a/python/src/lattice.pxd
+++ b/python/src/lattice.pxd
@@ -12,10 +12,9 @@ cdef extern from "decoder/lattice.h":
cdef cppclass Lattice(vector): # (vector[vector[LatticeArc]])
Lattice()
- Lattice(unsigned t)
- Lattice(unsigned t, vector[LatticeArc]& v)
bint IsSentence()
vector[LatticeArc]& operator[](unsigned)
+ void resize(unsigned)
cdef extern from "decoder/lattice.h" namespace "LatticeTools":
- void ConvertTextToLattice(string& text, Lattice* pl)
+ void ConvertTextOrPLF(string& text, Lattice* pl)