Skip to content

Commit

Permalink
#14
Browse files Browse the repository at this point in the history
  • Loading branch information
nishimotz committed Jan 6, 2016
1 parent e445635 commit 25ac706
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions jptools/mecabHarness.py
Expand Up @@ -556,4 +556,5 @@
{'text': "u' コーテーション' ",
'speech':"ユー’ コーテーション’ ",
'braille':"ユー/’/ /コーテーション/’"},
{'text':'outputting', 'speech':'アウトプッティング'}
]
6 changes: 5 additions & 1 deletion source/synthDrivers/jtalk/mecab.py
Expand Up @@ -250,6 +250,10 @@ def _makeFeatureFromLatinWordAndPostfix(org, ar):
postfix = u'ザー'
_yomi = _yomi[:-1]
_pron = _pron[:-1]
elif _hyoki.endswith(u't') and _yomi.endswith(u'ト') and org == u'ting':
postfix = u'ティング'
_yomi = _yomi[:-1]
_pron = _pron[:-1]
hyoki = _hyoki + org
yomi = _yomi + postfix
pron = _pron + postfix
Expand Down Expand Up @@ -337,7 +341,7 @@ def Mecab_correctFeatures(mf, CODE_ = CODE):
h=hyoki, h1=hin1, h2=hin2, y=yomi, p=pron, m=mora
)
Mecab_setFeature(mf, pos-2, feature, CODE_=CODE_)
elif ar2 and ar[0] in (u's', u'd', u'ed', u'r'):
elif ar2 and ar[0] in (u's', u'd', u'ed', u'r', u'ting'):
# pattern 5
if ar3 and ar2[0] in ("'", u"’"):
# PATTERN 5 "author's"
Expand Down

0 comments on commit 25ac706

Please sign in to comment.