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

Function _wrap_Path_cost_get

src/MeCab/MeCab_wrap.cpp:4507–4526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4505
4506
4507SWIGINTERN PyObject *_wrap_Path_cost_get(PyObject *self, PyObject *args) {
4508 PyObject *resultobj = 0;
4509 mecab_path_t *arg1 = (mecab_path_t *) 0 ;
4510 void *argp1 = 0 ;
4511 int res1 = 0 ;
4512 PyObject *swig_obj[1] ;
4513 int result;
4514
4515 if (!SWIG_Python_UnpackTuple(args, "Path_cost_get", 0, 0, 0)) SWIG_fail;
4516 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_path_t, 0 | 0 );
4517 if (!SWIG_IsOK(res1)) {
4518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_cost_get" "', argument " "1"" of type '" "mecab_path_t *""'");
4519 }
4520 arg1 = reinterpret_cast< mecab_path_t * >(argp1);
4521 result = (int) ((arg1)->cost);
4522 resultobj = SWIG_From_int(static_cast< int >(result));
4523 return resultobj;
4524fail:
4525 return NULL;
4526}
4527
4528
4529SWIGINTERN PyObject *_wrap_Path_prob_set(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_intFunction · 0.85

Tested by

no test coverage detected