diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-09-05 19:17:29 +0100 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-09-05 19:17:29 +0100 |
commit | 2928b86c3972d705c76e04499f148854aa8588a8 (patch) | |
tree | 2686ea420d4907e5967844de142cd744baa5ff6d /python/src/sa/suffix_array.pxi | |
parent | ee1cc47a751bff864d1f365d3bbf3e1c7a73f469 (diff) |
Revert to the "old style" pair count...
+ API naming fixes
+ Multiple feature definition files can be passed to the extractor
Diffstat (limited to 'python/src/sa/suffix_array.pxi')
-rw-r--r-- | python/src/sa/suffix_array.pxi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/src/sa/suffix_array.pxi b/python/src/sa/suffix_array.pxi index d86e8ea6..baa3d546 100644 --- a/python/src/sa/suffix_array.pxi +++ b/python/src/sa/suffix_array.pxi @@ -20,14 +20,14 @@ cdef class SuffixArray: def __getitem__(self, i): return self.sa.arr[i] - def getSentId(self, i): - return self.darray.getSentId(i) + def get_sentence_id(self, i): + return self.darray.get_sentence_id(i) - def getSent(self, i): - return self.darray.getSent(i) + def get_sentence(self, i): + return self.darray.get_sentence(i) - def getSentPos(self, loc): - return self.darray.getSentPos(loc) + def get_sentence_position(self, loc): + return self.darray.get_sentence_position(loc) def read_text(self, filename, side): '''Constructs suffix array using the algorithm |