This commit is contained in:
PyYoshi 2012-07-05 12:12:18 +09:00
parent 27f61923be
commit d360ee9576

View file

@ -33,6 +33,7 @@ def detect(char *msg):
return csd_close(csd) return csd_close(csd)
def detect_with_confidence(char *msg): def detect_with_confidence(char *msg):
# TODO: fix "sometimes, to output invalid confidence value" bug.
cdef csd_t csd = csd_open() cdef csd_t csd = csd_open()
cdef int length = strlen(msg) cdef int length = strlen(msg)
cdef int result = csd_consider(csd, msg, length) cdef int result = csd_consider(csd, msg, length)