summaryrefslogtreecommitdiff
path: root/python/src/hypergraph.pxd
blob: 05977fa84b8d9e0fe72876371134fee5e5ab7715 (plain)
1
2
3
4
5
6
7
8
9
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)