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

Function _wrap_Node_alpha_get

src/MeCab/MeCab_wrap.cpp:4966–4985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4964
4965
4966SWIGINTERN PyObject *_wrap_Node_alpha_get(PyObject *self, PyObject *args) {
4967 PyObject *resultobj = 0;
4968 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972 float result;
4973
4974 if (!SWIG_Python_UnpackTuple(args, "Node_alpha_get", 0, 0, 0)) SWIG_fail;
4975 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_alpha_get" "', argument " "1"" of type '" "mecab_node_t *""'");
4978 }
4979 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
4980 result = (float) ((arg1)->alpha);
4981 resultobj = SWIG_From_float(static_cast< float >(result));
4982 return resultobj;
4983fail:
4984 return NULL;
4985}
4986
4987
4988SWIGINTERN PyObject *_wrap_Node_beta_get(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_floatFunction · 0.85

Tested by

no test coverage detected