summaryrefslogtreecommitdiff
path: root/python/src/sa/data_array.pxi
diff options
context:
space:
mode:
authorAdam Lopez <alopez@cs.jhu.edu>2012-09-06 03:27:34 -0400
committerAdam Lopez <alopez@cs.jhu.edu>2012-09-06 03:27:34 -0400
commit86b272c97ed8b608f2411c96b8eec57c7e3f0470 (patch)
tree72da5f7601a731851b53d371d032ff0a8741d81e /python/src/sa/data_array.pxi
parentf99b04588d3725f28d13dcdfcbc0846cc1c52321 (diff)
parentdba6e87082501a66d8c444ebcd7ed6bd756aaf23 (diff)
Merge
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):