summaryrefslogtreecommitdiff
path: root/python/src/sa/sym.pxi
diff options
context:
space:
mode:
authorMichael Denkowski <michael.j.denkowski@gmail.com>2013-01-28 14:21:22 -0500
committerMichael Denkowski <michael.j.denkowski@gmail.com>2013-01-28 14:21:22 -0500
commit143afb1e6210ae6105426d47d7f225cbfa695753 (patch)
tree241db8508ebf72c2767751cbc92257a680bfff3c /python/src/sa/sym.pxi
parent5e7a99f9ce09a31092e194c06dd51368e18b3aed (diff)
Bilexical scores for online rules
Diffstat (limited to 'python/src/sa/sym.pxi')
-rw-r--r--python/src/sa/sym.pxi3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/src/sa/sym.pxi b/python/src/sa/sym.pxi
index 81f19ef1..f253aec0 100644
--- a/python/src/sa/sym.pxi
+++ b/python/src/sa/sym.pxi
@@ -104,6 +104,9 @@ cdef int sym_setindex(int sym, int id):
cdef int sym_fromstring(char* string, bint terminal):
return ALPHABET.fromstring(string, terminal)
+def isvar(sym):
+ return sym_isvar(sym)
+
def make_lattice(words):
word_ids = (sym_fromstring(word, True) for word in words)
return tuple(((word, None, 1), ) for word in word_ids)