From 1c6ad232a609112e12318c1e6428a540f53ba16e Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 7 Sep 2017 13:32:07 +0900 Subject: [PATCH] Fix bug --- src/tools/analysis/extract-user-keywords.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/analysis/extract-user-keywords.ts b/src/tools/analysis/extract-user-keywords.ts index 49fc9a5c9..d34bb7cd6 100644 --- a/src/tools/analysis/extract-user-keywords.ts +++ b/src/tools/analysis/extract-user-keywords.ts @@ -8,7 +8,7 @@ const mecab = new MeCab(); if (config.analysis.mecab_command) mecab.command = config.analysis.mecab_command; function tokenize(text: string) { - const tokens = this.mecab.parseSync(text) + const tokens = mecab.parseSync(text) // キーワードのみ .filter(token => token[1] == '名詞' && (token[2] == '固有名詞' || token[2] == '一般')) // 取り出し