Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/MeCab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def error_info(args):


class Tagger(_MeCab.Tagger):
def __init__(self, rawargs=""):
def __init__(self, rawargs="", error_check=False):
# First check for Unidic.
unidicdir = try_import_unidic()
args = rawargs
Expand All @@ -123,7 +123,8 @@ def __init__(self, rawargs=""):
try:
super(Tagger, self).__init__(args)
except RuntimeError:
error_info(rawargs)
if not error_check:
error_info(rawargs)
raise


Expand Down