mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
Rename
This commit is contained in:
parent
8094f3b983
commit
8d9f7e2033
@ -68,7 +68,7 @@ type Source = {
|
|||||||
hook_secret: string;
|
hook_secret: string;
|
||||||
username: string;
|
username: string;
|
||||||
};
|
};
|
||||||
categorizer?: {
|
analysis?: {
|
||||||
mecab_command?: string;
|
mecab_command?: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ import User from '../../api/models/user';
|
|||||||
import config from '../../conf';
|
import config from '../../conf';
|
||||||
|
|
||||||
const mecab = new MeCab();
|
const mecab = new MeCab();
|
||||||
if (config.categorizer.mecab_command) mecab.command = config.categorizer.mecab_command;
|
if (config.analysis.mecab_command) mecab.command = config.analysis.mecab_command;
|
||||||
|
|
||||||
function tokenize(text: string) {
|
function tokenize(text: string) {
|
||||||
const tokens = this.mecab.parseSync(text)
|
const tokens = this.mecab.parseSync(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user