1
0
Fork 0

fixed the first set of words not being imported for transcribed languages

This commit is contained in:
sspanak 2025-03-11 18:25:51 +02:00 committed by Dimo Karaivanov
parent dcdd78486a
commit 795145fb2b

View file

@ -265,6 +265,8 @@ public class DictionaryLoader {
int wordCount = 0; int wordCount = 0;
int maxWordsPerSequence = 0; int maxWordsPerSequence = 0;
positionShift = positionShift == 0 ? 1 : positionShift;
try (BufferedReader ignored = wordFile.getReader()) { try (BufferedReader ignored = wordFile.getReader()) {
while (wordFile.notEOF()) { while (wordFile.notEOF()) {
if (loadThread.isInterrupted()) { if (loadThread.isInterrupted()) {