summaryrefslogtreecommitdiff
path: root/sa-extract/rule.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'sa-extract/rule.pxd')
-rw-r--r--sa-extract/rule.pxd13
1 files changed, 13 insertions, 0 deletions
diff --git a/sa-extract/rule.pxd b/sa-extract/rule.pxd
new file mode 100644
index 00000000..c9c84e5c
--- /dev/null
+++ b/sa-extract/rule.pxd
@@ -0,0 +1,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
+