MCPcopy Create free account
hub / github.com/SamuraiT/mecab-python3 / _wrap_Path_prob_get

Function _wrap_Path_prob_get

src/MeCab/MeCab_wrap.cpp:4559–4578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4557
4558
4559SWIGINTERN PyObject *_wrap_Path_prob_get(PyObject *self, PyObject *args) {
4560 PyObject *resultobj = 0;
4561 mecab_path_t *arg1 = (mecab_path_t *) 0 ;
4562 void *argp1 = 0 ;
4563 int res1 = 0 ;
4564 PyObject *swig_obj[1] ;
4565 float result;
4566
4567 if (!SWIG_Python_UnpackTuple(args, "Path_prob_get", 0, 0, 0)) SWIG_fail;
4568 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_path_t, 0 | 0 );
4569 if (!SWIG_IsOK(res1)) {
4570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_prob_get" "', argument " "1"" of type '" "mecab_path_t *""'");
4571 }
4572 arg1 = reinterpret_cast< mecab_path_t * >(argp1);
4573 result = (float) ((arg1)->prob);
4574 resultobj = SWIG_From_float(static_cast< float >(result));
4575 return resultobj;
4576fail:
4577 return NULL;
4578}
4579
4580
4581SWIGINTERN PyObject *_wrap_delete_Path(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_floatFunction · 0.85

Tested by

no test coverage detected