From 57d8aeaf862bad8516e8aa87eca10fdb75bdcb3a Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Mon, 4 Jun 2012 02:16:59 -0400 Subject: Python module: initial version --- python/src/hypergraph.pxd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 python/src/hypergraph.pxd (limited to 'python/src/hypergraph.pxd') diff --git a/python/src/hypergraph.pxd b/python/src/hypergraph.pxd new file mode 100644 index 00000000..05977fa8 --- /dev/null +++ b/python/src/hypergraph.pxd @@ -0,0 +1,10 @@ +from libcpp.string cimport string +from libcpp.vector cimport vector +from utils cimport WordID + +cdef extern from "decoder/hg.h": + cdef cppclass Hypergraph: + Hypergraph(Hypergraph) + +cdef extern from "decoder/viterbi.h": + cdef string ViterbiESentence(Hypergraph hg, vector[WordID]* trans) -- cgit v1.2.3