summaryrefslogtreecommitdiff
path: root/python/src/sa/data_array.pxi
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-06 15:08:55 +0100
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-06 15:08:55 +0100
commitfe9577d0ec51b7a5136d23885742780ca7f9ba8c (patch)
treebed1636280e2efc3a56b2cfaf7d5529d95424799 /python/src/sa/data_array.pxi
parentaf8b109ad49222bc56527e5e75b8267134233bd4 (diff)
[cdec.sa] Fix the list of matching training source sentence
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]