summaryrefslogtreecommitdiff
path: root/python/src/hypergraph.pxd
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-06-05 15:47:09 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-06-05 15:47:09 -0400
commit23c7a1ed9f4d2360f8e1183539e3569fdbf60b48 (patch)
tree5cffb41d2cccb7ec3cc4583be12d78d1cedd9544 /python/src/hypergraph.pxd
parent84bc2dd5a966eea898d4c0213205fd3917b285f4 (diff)
parent98e13188c40adf13b73ca994d3410f3e87d20355 (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/src/hypergraph.pxd')
-rw-r--r--python/src/hypergraph.pxd10
1 files changed, 10 insertions, 0 deletions
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)