summaryrefslogtreecommitdiff
path: root/sa-extract/rule.pxd
blob: c9c84e5c1f94be4c0f45ca05982c03aebade0520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cdef class Phrase:
    cdef int *syms
    cdef int n, *varpos, n_vars
    cdef public int chunkpos(self, int k)
    cdef public int chunklen(self, int k)

cdef class Rule:
    cdef public int lhs
    cdef readonly Phrase f, e
    cdef float *cscores
    cdef int n_scores
    cdef public owner, word_alignments