summaryrefslogtreecommitdiff
path: root/python/src/sa/_sa.pxd
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-07-28 12:11:44 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-07-28 12:11:44 -0400
commit306e0ba4754c6c4f460536cfe8c3f118dc1cc175 (patch)
treead5ea3b0a5370ac613d1bad715fe0f5ab8c91c11 /python/src/sa/_sa.pxd
parent934e55dc12c3f374684bc6a0797e6f85c7abb85a (diff)
parentee5e376e263d9aeabdeee6968b4457f53d3fc772 (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/src/sa/_sa.pxd')
-rw-r--r--python/src/sa/_sa.pxd17
1 files changed, 17 insertions, 0 deletions
diff --git a/python/src/sa/_sa.pxd b/python/src/sa/_sa.pxd
new file mode 100644
index 00000000..d390bfc5
--- /dev/null
+++ b/python/src/sa/_sa.pxd
@@ -0,0 +1,17 @@
+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 word_alignments
+
+cdef char* sym_tostring(int sym)
+cdef char* sym_tocat(int sym)
+cdef int sym_isvar(int sym)
+cdef int sym_getindex(int sym)