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

Function _wrap_new_Model

src/MeCab/MeCab_wrap.cpp:6798–6823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6796
6797
6798SWIGINTERN int _wrap_new_Model(PyObject *self, PyObject *args, PyObject *SWIGUNUSEDPARM(kwargs)) {
6799 Py_ssize_t argc;
6800 PyObject *argv[2] = {
6801 0
6802 };
6803
6804 if (!(argc = SWIG_Python_UnpackTuple(args, "new_Model", 0, 1, argv))) SWIG_fail;
6805 --argc;
6806 if (argc == 0) {
6807 int retval = _wrap_new_Model__SWIG_1(self, argc, argv);
6808 if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval;
6809 SWIG_fail;
6810 }
6811 if (argc == 1) {
6812 int retval = _wrap_new_Model__SWIG_0(self, argc, argv);
6813 if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval;
6814 SWIG_fail;
6815 }
6816
6817fail:
6818 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Model'.\n"
6819 " Possible C/C++ prototypes are:\n"
6820 " MeCab::Model::Model(int,char **)\n"
6821 " MeCab::Model::Model()\n");
6822 return -1;
6823}
6824
6825
6826SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Model) /* defines _wrap_delete_Model_destructor_closure */

Callers

nothing calls this directly

Tested by

no test coverage detected