summaryrefslogtreecommitdiff
path: root/python/src/sa/data_array.pxi
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-05 19:17:29 +0100
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-05 19:17:29 +0100
commit2928b86c3972d705c76e04499f148854aa8588a8 (patch)
tree2686ea420d4907e5967844de142cd744baa5ff6d /python/src/sa/data_array.pxi
parentee1cc47a751bff864d1f365d3bbf3e1c7a73f469 (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.pxi6
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):