Skip to content

Commit

Permalink
Merge pull request #3 from bab2min/develop
Browse files Browse the repository at this point in the history
fixed #2 for v0.7.2
  • Loading branch information
bab2min authored Dec 1, 2019
2 parents 65cc443 + 4de799f commit 66bc288
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
setup(
name='kiwipiepy',

version='0.7.1',
version='0.7.2',

description='Kiwi, the Korean Tokenizer for Python',
long_description=long_description,
Expand Down
5 changes: 3 additions & 2 deletions src/KiwiPy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ static PyObject* kiwi__analyze(KiwiObject* self, PyObject* args, PyObject *kwarg
return nullptr;
}
}
PyErr_Clear();
}
{
PyObject* reader, *receiver;
Expand All @@ -453,8 +454,8 @@ static PyObject* kiwi__analyze(KiwiObject* self, PyObject* args, PyObject *kwarg
{
try
{
if (!PyCallable_Check(reader)) return PyErr_SetString(PyExc_TypeError, "analyze requires 1st parameter which is callable"), nullptr;
if (!PyCallable_Check(receiver)) return PyErr_SetString(PyExc_TypeError, "analyze requires 2nd parameter which is callable"), nullptr;
if (!PyCallable_Check(reader)) return PyErr_SetString(PyExc_TypeError, "'analyze' requires 1st parameter as callable"), nullptr;
if (!PyCallable_Check(receiver)) return PyErr_SetString(PyExc_TypeError, "'analyze' requires 2nd parameter as callable"), nullptr;
self->inst->analyze(topN, [&reader](size_t id)->u16string
{
PyObject* argList = Py_BuildValue("(n)", id);
Expand Down
2 changes: 1 addition & 1 deletion src/core/Kiwi.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <future>
#include <future>
#include "Kiwi.h"
#include "Utils.h"
#include "KFeatureTestor.h"
Expand Down

0 comments on commit 66bc288

Please sign in to comment.