OSDN Git Service
(root)
/
nvdajp
/
nvdajpmiscdep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3fb3df
)
do not write empty log message from mecab
author
Takuya Nishimoto
<nishimotz@gmail.com>
Mon, 11 Nov 2013 12:11:34 +0000
(21:11 +0900)
committer
Takuya Nishimoto
<nishimotz@gmail.com>
Mon, 11 Nov 2013 12:11:34 +0000
(21:11 +0900)
source/synthDrivers/jtalk/mecab.py
patch
|
blob
|
history
diff --git
a/source/synthDrivers/jtalk/mecab.py
b/source/synthDrivers/jtalk/mecab.py
index
9aa4631
..
ebbd2cd
100644
(file)
--- a/
source/synthDrivers/jtalk/mecab.py
+++ b/
source/synthDrivers/jtalk/mecab.py
@@
-271,7
+271,8
@@
def Mecab_initialize(logwrite_ = None, jtalk_dir = DEFAULT_JTALK_DIR):
mecab = libmc.mecab_new(5, args)
\r
if logwrite_:
\r
if not mecab: logwrite_('mecab_new failed.')
\r
- logwrite_(libmc.mecab_strerror(mecab))
\r
+ s = libmc.mecab_strerror(mecab).strip()
\r
+ if s: logwrite_(s)
\r
#if logwrite_: logwrite_('mecab init end')
\r
\r
def Mecab_analysis(src, features, logwrite_ = None):
\r