mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 08:57:16 +09:00
oops
This commit is contained in:
parent
60718dce48
commit
73c8874749
@ -29,7 +29,7 @@ export default class KeywordModule implements IModule {
|
|||||||
|
|
||||||
await Promise.all(interestedNotes.map(note => new Promise((res, rej) => {
|
await Promise.all(interestedNotes.map(note => new Promise((res, rej) => {
|
||||||
this.tokenizer.parse(note.text, (err, tokens) => {
|
this.tokenizer.parse(note.text, (err, tokens) => {
|
||||||
const keywordsInThisNote = tokens.filter(token => token[2] == '固有名詞' && keyword[8] != null);
|
const keywordsInThisNote = tokens.filter(token => token[2] == '固有名詞' && token[8] != null);
|
||||||
keywords = keywords.concat(keywordsInThisNote);
|
keywords = keywords.concat(keywordsInThisNote);
|
||||||
res();
|
res();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user