summaryrefslogtreecommitdiff
path: root/python/src/sa/data_array.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/sa/data_array.pxi')
-rw-r--r--python/src/sa/data_array.pxi7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/src/sa/data_array.pxi b/python/src/sa/data_array.pxi
index ce2d3a79..371708c5 100644
--- a/python/src/sa/data_array.pxi
+++ b/python/src/sa/data_array.pxi
@@ -9,8 +9,8 @@ from libc.string cimport memset, strcpy
cdef class DataArray:
cdef word2id
cdef id2word
- cdef IntList data
- cdef IntList sent_id
+ cdef public IntList data
+ cdef public IntList sent_id
cdef IntList sent_index
cdef bint use_sent_id
@@ -32,9 +32,6 @@ cdef class DataArray:
def __len__(self):
return len(self.data)
- def get_data(self):
- return self.data
-
def get_sentence_id(self, i):
return self.sent_id.arr[i]