mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 09:51:38 +00:00
Remove unnecessary variable from make_mecab_analyzer
Former-commit-id: 548162c563
This commit is contained in:
parent
0a5e6bd87a
commit
8c79465d28
@ -49,8 +49,7 @@ def make_mecab_analyzer(names):
|
|||||||
Get a MeCab analyzer object, given a list of names the dictionary might
|
Get a MeCab analyzer object, given a list of names the dictionary might
|
||||||
have.
|
have.
|
||||||
"""
|
"""
|
||||||
filename = find_mecab_dictionary(names)
|
return MeCab.Tagger('-d %s' % find_mecab_dictionary(names))
|
||||||
return MeCab.Tagger('-d %s' % filename)
|
|
||||||
|
|
||||||
|
|
||||||
# Instantiate the MeCab analyzers for each language.
|
# Instantiate the MeCab analyzers for each language.
|
||||||
|
Loading…
Reference in New Issue
Block a user