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

Function _wrap_Node_beta_get

src/MeCab/MeCab_wrap.cpp:4988–5007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4986
4987
4988SWIGINTERN PyObject *_wrap_Node_beta_get(PyObject *self, PyObject *args) {
4989 PyObject *resultobj = 0;
4990 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
4991 void *argp1 = 0 ;
4992 int res1 = 0 ;
4993 PyObject *swig_obj[1] ;
4994 float result;
4995
4996 if (!SWIG_Python_UnpackTuple(args, "Node_beta_get", 0, 0, 0)) SWIG_fail;
4997 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
4998 if (!SWIG_IsOK(res1)) {
4999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_beta_get" "', argument " "1"" of type '" "mecab_node_t *""'");
5000 }
5001 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
5002 result = (float) ((arg1)->beta);
5003 resultobj = SWIG_From_float(static_cast< float >(result));
5004 return resultobj;
5005fail:
5006 return NULL;
5007}
5008
5009
5010SWIGINTERN PyObject *_wrap_Node_prob_set(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_floatFunction · 0.85

Tested by

no test coverage detected