summaryrefslogtreecommitdiff
path: root/python/src/mteval.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/mteval.pxi')
-rw-r--r--python/src/mteval.pxi10
1 files changed, 0 insertions, 10 deletions
diff --git a/python/src/mteval.pxi b/python/src/mteval.pxi
index d90eb9a6..4ba73168 100644
--- a/python/src/mteval.pxi
+++ b/python/src/mteval.pxi
@@ -1,15 +1,5 @@
cimport mteval
-cdef char* as_str(sentence, error_msg='Cannot convert type %s to str'):
- cdef bytes ret
- if isinstance(sentence, unicode):
- ret = sentence.encode('utf8')
- elif isinstance(sentence, str):
- ret = sentence
- else:
- raise TypeError(error_msg % type(sentence))
- return ret
-
cdef SufficientStats as_stats(x, y):
if isinstance(x, SufficientStats):
return x