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

Function _wrap_Lattice_eos_node

src/MeCab/MeCab_wrap.cpp:5267–5296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5265
5266
5267SWIGINTERN PyObject *_wrap_Lattice_eos_node(PyObject *self, PyObject *args) {
5268 PyObject *resultobj = 0;
5269 MeCab::Lattice *arg1 = (MeCab::Lattice *) 0 ;
5270 void *argp1 = 0 ;
5271 int res1 = 0 ;
5272 PyObject *swig_obj[1] ;
5273 MeCab::Node *result = 0 ;
5274
5275 if (!SWIG_Python_UnpackTuple(args, "Lattice_eos_node", 0, 0, 0)) SWIG_fail;
5276 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MeCab__Lattice, 0 | 0 );
5277 if (!SWIG_IsOK(res1)) {
5278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Lattice_eos_node" "', argument " "1"" of type '" "MeCab::Lattice const *""'");
5279 }
5280 arg1 = reinterpret_cast< MeCab::Lattice * >(argp1);
5281 {
5282 try {
5283 result = (MeCab::Node *)((MeCab::Lattice const *)arg1)->eos_node();
5284 }
5285 catch (char *e) {
5286 SWIG_exception (SWIG_RuntimeError, e);
5287 }
5288 catch (const char *e) {
5289 SWIG_exception (SWIG_RuntimeError, (char*)e);
5290 }
5291 }
5292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mecab_node_t, 0 | 0 );
5293 return resultobj;
5294fail:
5295 return NULL;
5296}
5297
5298
5299SWIGINTERN PyObject *_wrap_Lattice_end_nodes(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected