mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-24 16:46:18 -08:00
fix(tokenizer): lazy yomitan term-only frequency fallback
This commit is contained in:
5 files changed
+298
-79
No files matched your search
@@ -329,11 +329,6 @@ function buildYomitanFrequencyTermReadingList(
|
||||
const readingRaw =
|
||||
token.reading && token.reading.trim().length > 0 ? token.reading.trim() : null;
|
||||
termReadingList.push({ term, reading: readingRaw });
|
||||
|
||||
// Yomitan parse readings can be noisy/truncated on merged tokens; include term-only fallback.
|
||||
if (readingRaw !== null) {
|
||||
termReadingList.push({ term, reading: null });
|
||||
}
|
||||
}
|
||||
|
||||
return termReadingList;
|
||||
|
||||
Reference in new issue
Block a user