mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-24 16:46:18 -08:00
perf(tokenizer): skip known-word lookup in MeCab POS enrichment
This commit is contained in:
3 files changed
+52
-5
No files matched your search
@@ -211,8 +211,7 @@ export function createTokenizerDepsRuntime(
|
||||
return null;
|
||||
}
|
||||
|
||||
const isKnownWordLookup = options.getNPlusOneEnabled?.() === false ? () => false : options.isKnownWord;
|
||||
return mergeTokens(rawTokens, isKnownWordLookup, options.getKnownWordMatchMode());
|
||||
return mergeTokens(rawTokens, options.isKnownWord, options.getKnownWordMatchMode(), false);
|
||||
},
|
||||
enrichTokensWithMecab: async (tokens, mecabTokens) =>
|
||||
enrichTokensWithMecabAsync(tokens, mecabTokens),
|
||||
|
||||
Reference in new issue
Block a user