summaryrefslogtreecommitdiff
path: root/python/src/utils.pxd
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-08-11 23:30:00 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-08-11 23:30:00 -0400
commit7527592aaf4245749845500aca6a7fcc97eb2f17 (patch)
treed8fdb627c657e7a4699baf0670ca749df1f7e972 /python/src/utils.pxd
parentdad8da6f5f65e157476b3999257069bda7b8552e (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.pxd2
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":