mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 13:17:59 +00:00
✌️
This commit is contained in:
parent
b17a828895
commit
60718dce48
|
@ -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] == '固有名詞');
|
const keywordsInThisNote = tokens.filter(token => token[2] == '固有名詞' && keyword[8] != null);
|
||||||
keywords = keywords.concat(keywordsInThisNote);
|
keywords = keywords.concat(keywordsInThisNote);
|
||||||
res();
|
res();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue