summaryrefslogtreecommitdiff
path: root/python/src/utils.pxd
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-07-27 22:25:15 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-07-27 22:25:15 -0400
commit1d481414a2fa8505a2591c88e2b7b8f86a682ca2 (patch)
treeed5e9dff569d89da453578ce3d109991623d9303 /python/src/utils.pxd
parentb317e0efd2398d75d70e027bb1e2cf442e683981 (diff)
[python] conversion from cdec.sa.Rule to cdec.TRule
+ remove configobj dependency + re-structure packages (no more top-level library) + "const" stuff + use __new__ instead of constructor for some objects
Diffstat (limited to 'python/src/utils.pxd')
-rw-r--r--python/src/utils.pxd5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/src/utils.pxd b/python/src/utils.pxd
index f4da686b..a1a4799b 100644
--- a/python/src/utils.pxd
+++ b/python/src/utils.pxd
@@ -17,7 +17,9 @@ cdef extern from "utils/logval.h":
cdef cppclass LogVal[T]:
double as_float()
- double log(LogVal[double]&)
+ ctypedef LogVal[double] prob_t
+
+ double log(prob_t&)
cdef extern from "utils/wordid.h":
ctypedef int WordID
@@ -33,7 +35,6 @@ cdef extern from "utils/sparse_vector.h":
const_iterator(FastSparseVector[T]&, bint is_end)
pair[unsigned, T]* ptr "operator->" ()
const_iterator& operator++()
- bint operator==(const_iterator&)
bint operator!=(const_iterator&)
FastSparseVector()
FastSparseVector(FastSparseVector[T]&)