diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-08-11 23:30:00 -0400 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-08-11 23:30:00 -0400 |
commit | ccdb3061d1e582a5abd412b37ee0da2278f45706 (patch) | |
tree | 9952c909e8bccf4f4ed105c1a135e431f7edd05e /python/src/utils.pxd | |
parent | 7f688a6a4ef605dea284b096889f1735406123b6 (diff) |
[python] fix for new dict API
- TDConvert returns a string
- various c_str fixes (make copies)
- cleanup .gitignore
Diffstat (limited to 'python/src/utils.pxd')
-rw-r--r-- | python/src/utils.pxd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/src/utils.pxd b/python/src/utils.pxd index a1a4799b..687d3ac0 100644 --- a/python/src/utils.pxd +++ b/python/src/utils.pxd @@ -63,7 +63,7 @@ cdef extern from "utils/tdict.h" namespace "TD": string GetString(vector[WordID]& st) unsigned NumWords() WordID TDConvert "TD::Convert" (char*) - char* TDConvert "TD::Convert" (WordID) + string& TDConvert "TD::Convert" (WordID) void ConvertSentence(string& sent, vector[WordID]* ids) cdef extern from "utils/verbose.h": |