Remove unnecessary variable from make_mecab_analyzer

Former-commit-id: 548162c563
This commit is contained in:
Rob Speer 2016-08-04 15:17:02 -04:00
parent 0a5e6bd87a
commit 8c79465d28

View File

@ -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.