mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 22:15:12 +00:00
Rename
This commit is contained in:
parent
e891b34d61
commit
1ed468911e
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ type Source = {
|
|||
hook_secret: string;
|
||||
username: string;
|
||||
};
|
||||
categorizer?: {
|
||||
analysis?: {
|
||||
mecab_command?: string;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,7 +5,7 @@ import User from '../../api/models/user';
|
|||
import config from '../../conf';
|
||||
|
||||
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) {
|
||||
const tokens = this.mecab.parseSync(text)
|
||||
|
|
Loading…
Reference in a new issue