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/data_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/data_array.pxi')
| -rw-r--r-- | python/src/sa/data_array.pxi | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/python/src/sa/data_array.pxi b/python/src/sa/data_array.pxi index 9f62dc0a..2626ce0f 100644 --- a/python/src/sa/data_array.pxi +++ b/python/src/sa/data_array.pxi @@ -32,10 +32,10 @@ cdef class DataArray:      def __len__(self):          return len(self.data) -    def getSentId(self, i): +    def get_sentence_id(self, i):          return self.sent_id.arr[i] -    def getSent(self, i): +    def get_sentence(self, i):          cdef int j, start, stop          sent = []          start = self.sent_index.arr[i] @@ -44,7 +44,7 @@ cdef class DataArray:              sent.append(self.id2word[self.data.arr[i]])          return sent -    def getSentPos(self, loc): +    def get_sentence_position(self, loc):          return loc - self.sent_index.arr[self.sent_id.arr[loc]]      def get_id(self, word): | 
