From 548162c56372aec740e9733c5e9f498a23fb4814 Mon Sep 17 00:00:00 2001 From: Rob Speer Date: Thu, 4 Aug 2016 15:17:02 -0400 Subject: [PATCH] Remove unnecessary variable from make_mecab_analyzer --- wordfreq/mecab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wordfreq/mecab.py b/wordfreq/mecab.py index c91705b..c0c8cfc 100644 --- a/wordfreq/mecab.py +++ b/wordfreq/mecab.py @@ -49,8 +49,7 @@ def make_mecab_analyzer(names): Get a MeCab analyzer object, given a list of names the dictionary might have. """ - filename = find_mecab_dictionary(names) - return MeCab.Tagger('-d %s' % filename) + return MeCab.Tagger('-d %s' % find_mecab_dictionary(names)) # Instantiate the MeCab analyzers for each language.