diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-06-04 02:16:59 -0400 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-06-04 02:16:59 -0400 |
commit | 57d8aeaf862bad8516e8aa87eca10fdb75bdcb3a (patch) | |
tree | 294dc1d5f6e2c6aed40984adc883160ac79132a2 /python/src/hypergraph.pxd | |
parent | 43e7813a1001aa84b821f851b29606b6d98a83ac (diff) |
Python module: initial version
Diffstat (limited to 'python/src/hypergraph.pxd')
-rw-r--r-- | python/src/hypergraph.pxd | 10 |
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) |