diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2013-06-02 14:55:53 -0400 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2013-06-02 14:55:53 -0400 |
commit | 8ef5c9b0e15c45b09a22fd89a4ed7b0e180a9d2b (patch) | |
tree | 6b594a485a0fea36c1765e58c9c13b95600950d0 /python/src/sa/rule.pxi | |
parent | cd5190d525b911c8fecd50ada5f57d879bcd9779 (diff) |
Possible fix for #13
- use IntList .len instead of len() which can return long
- a bit of code cleanup
- upgrade to Cython 0.19
Diffstat (limited to 'python/src/sa/rule.pxi')
-rw-r--r-- | python/src/sa/rule.pxi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/src/sa/rule.pxi b/python/src/sa/rule.pxi index 98fbac76..4f0ea74f 100644 --- a/python/src/sa/rule.pxi +++ b/python/src/sa/rule.pxi @@ -189,4 +189,4 @@ cdef class Rule: def alignments(self): for point in self.word_alignments: - yield point/65536, point%65536 + yield point / ALIGNMENT_CODE, point % ALIGNMENT_CODE |