summaryrefslogtreecommitdiff
path: root/python/cdec/lattice.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'python/cdec/lattice.pxd')
-rw-r--r--python/cdec/lattice.pxd6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/cdec/lattice.pxd b/python/cdec/lattice.pxd
index 8ad710e5..ed290d5a 100644
--- a/python/cdec/lattice.pxd
+++ b/python/cdec/lattice.pxd
@@ -1,14 +1,14 @@
from libcpp.vector cimport vector
from libcpp.string cimport string
-from utils cimport WordID
+from utils cimport *
cdef extern from "decoder/lattice.h":
cdef cppclass LatticeArc:
WordID label
- double cost
+ FastSparseVector[double] features
int dist2next
LatticeArc()
- LatticeArc(WordID w, double c, int i)
+ LatticeArc(WordID w, FastSparseVector[double]& features, int i)
cdef cppclass Lattice(vector): # (vector[vector[LatticeArc]])
Lattice()