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

Function _wrap_Node_prob_get

src/MeCab/MeCab_wrap.cpp:5040–5059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5038
5039
5040SWIGINTERN PyObject *_wrap_Node_prob_get(PyObject *self, PyObject *args) {
5041 PyObject *resultobj = 0;
5042 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
5043 void *argp1 = 0 ;
5044 int res1 = 0 ;
5045 PyObject *swig_obj[1] ;
5046 float result;
5047
5048 if (!SWIG_Python_UnpackTuple(args, "Node_prob_get", 0, 0, 0)) SWIG_fail;
5049 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
5050 if (!SWIG_IsOK(res1)) {
5051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_prob_get" "', argument " "1"" of type '" "mecab_node_t *""'");
5052 }
5053 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
5054 result = (float) ((arg1)->prob);
5055 resultobj = SWIG_From_float(static_cast< float >(result));
5056 return resultobj;
5057fail:
5058 return NULL;
5059}
5060
5061
5062SWIGINTERN PyObject *_wrap_Node_wcost_get(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_floatFunction · 0.85

Tested by

no test coverage detected