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

Function _wrap_Node_prob_set

src/MeCab/MeCab_wrap.cpp:5010–5037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5008
5009
5010SWIGINTERN PyObject *_wrap_Node_prob_set(PyObject *self, PyObject *args) {
5011 PyObject *resultobj = 0;
5012 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
5013 float arg2 ;
5014 void *argp1 = 0 ;
5015 int res1 = 0 ;
5016 float val2 ;
5017 int ecode2 = 0 ;
5018 PyObject *swig_obj[2] ;
5019
5020 if (!args) SWIG_fail;
5021 swig_obj[0] = args;
5022 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
5023 if (!SWIG_IsOK(res1)) {
5024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_prob_set" "', argument " "1"" of type '" "mecab_node_t *""'");
5025 }
5026 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
5027 ecode2 = SWIG_AsVal_float(swig_obj[0], &val2);
5028 if (!SWIG_IsOK(ecode2)) {
5029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Node_prob_set" "', argument " "2"" of type '" "float""'");
5030 }
5031 arg2 = static_cast< float >(val2);
5032 if (arg1) (arg1)->prob = arg2;
5033 resultobj = SWIG_Py_Void();
5034 return resultobj;
5035fail:
5036 return NULL;
5037}
5038
5039
5040SWIGINTERN PyObject *_wrap_Node_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