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

Function _wrap_Lattice_enumNBestAsString

src/MeCab/MeCab_wrap.cpp:5944–5982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5942
5943
5944SWIGINTERN PyObject *_wrap_Lattice_enumNBestAsString(PyObject *self, PyObject *args) {
5945 PyObject *resultobj = 0;
5946 MeCab::Lattice *arg1 = (MeCab::Lattice *) 0 ;
5947 size_t arg2 ;
5948 void *argp1 = 0 ;
5949 int res1 = 0 ;
5950 size_t val2 ;
5951 int ecode2 = 0 ;
5952 PyObject *swig_obj[2] ;
5953 char *result = 0 ;
5954
5955 if (!args) SWIG_fail;
5956 swig_obj[0] = args;
5957 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MeCab__Lattice, 0 | 0 );
5958 if (!SWIG_IsOK(res1)) {
5959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Lattice_enumNBestAsString" "', argument " "1"" of type '" "MeCab::Lattice *""'");
5960 }
5961 arg1 = reinterpret_cast< MeCab::Lattice * >(argp1);
5962 ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2);
5963 if (!SWIG_IsOK(ecode2)) {
5964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Lattice_enumNBestAsString" "', argument " "2"" of type '" "size_t""'");
5965 }
5966 arg2 = static_cast< size_t >(val2);
5967 {
5968 try {
5969 result = (char *)(arg1)->enumNBestAsString(arg2);
5970 }
5971 catch (char *e) {
5972 SWIG_exception (SWIG_RuntimeError, e);
5973 }
5974 catch (const char *e) {
5975 SWIG_exception (SWIG_RuntimeError, (char*)e);
5976 }
5977 }
5978 resultobj = SWIG_FromCharPtr((const char *)result);
5979 return resultobj;
5980fail:
5981 return NULL;
5982}
5983
5984
5985SWIGINTERN PyObject *_wrap_Lattice_has_constraint(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 2

SWIG_AsVal_size_tFunction · 0.85
SWIG_FromCharPtrFunction · 0.85

Tested by

no test coverage detected