diff options
author | Adam Lopez <alopez@cs.jhu.edu> | 2012-09-06 03:27:34 -0400 |
---|---|---|
committer | Adam Lopez <alopez@cs.jhu.edu> | 2012-09-06 03:27:34 -0400 |
commit | 86b272c97ed8b608f2411c96b8eec57c7e3f0470 (patch) | |
tree | 72da5f7601a731851b53d371d032ff0a8741d81e /python/src/sa/data_array.pxi | |
parent | f99b04588d3725f28d13dcdfcbc0846cc1c52321 (diff) | |
parent | dba6e87082501a66d8c444ebcd7ed6bd756aaf23 (diff) |
Merge
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): |