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 | b939bff222736e87fa234c2835511cc29fce644f (patch) | |
tree | 869aeabb86e5ce4ab4f9bdb7924f3c6233e1a051 /python/src/sa/suffix_array.pxi | |
parent | c6b35eff2537f0b07ceb9aca499e8f76b3d33710 (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 |