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

Function _wrap_Path_prob_set

src/MeCab/MeCab_wrap.cpp:4529–4556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4527
4528
4529SWIGINTERN PyObject *_wrap_Path_prob_set(PyObject *self, PyObject *args) {
4530 PyObject *resultobj = 0;
4531 mecab_path_t *arg1 = (mecab_path_t *) 0 ;
4532 float arg2 ;
4533 void *argp1 = 0 ;
4534 int res1 = 0 ;
4535 float val2 ;
4536 int ecode2 = 0 ;
4537 PyObject *swig_obj[2] ;
4538
4539 if (!args) SWIG_fail;
4540 swig_obj[0] = args;
4541 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_path_t, 0 | 0 );
4542 if (!SWIG_IsOK(res1)) {
4543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_prob_set" "', argument " "1"" of type '" "mecab_path_t *""'");
4544 }
4545 arg1 = reinterpret_cast< mecab_path_t * >(argp1);
4546 ecode2 = SWIG_AsVal_float(swig_obj[0], &val2);
4547 if (!SWIG_IsOK(ecode2)) {
4548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Path_prob_set" "', argument " "2"" of type '" "float""'");
4549 }
4550 arg2 = static_cast< float >(val2);
4551 if (arg1) (arg1)->prob = arg2;
4552 resultobj = SWIG_Py_Void();
4553 return resultobj;
4554fail:
4555 return NULL;
4556}
4557
4558
4559SWIGINTERN PyObject *_wrap_Path_prob_get(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 2

SWIG_AsVal_floatFunction · 0.85
SWIG_Py_VoidFunction · 0.85

Tested by

no test coverage detected