We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1effe58 commit 1502ae5Copy full SHA for 1502ae5
src/MeCab/__init__.py
@@ -10,6 +10,7 @@
10
from . import _MeCab
11
12
import os
13
+import sys
14
import shlex
15
16
@@ -100,7 +101,7 @@ def __init__(self, args=""):
100
101
try:
102
super(Tagger, self).__init__(args)
103
except RuntimeError:
- print(FAILMESSAGE)
104
+ sys.stderr.write(FAILMESSAGE)
105
raise
106
107
@@ -117,7 +118,7 @@ def __init__(self, args=""):
117
118
119
super(Model, self).__init__(args)
120
121
122
123
124
0 commit comments