introduce bitloops

This commit is contained in:
mike
2026-01-18 02:58:37 +01:00
parent 112c16c525
commit 6daab5ef4e
5 changed files with 134 additions and 50 deletions

View File

@@ -305,7 +305,7 @@ public record Export() {
}
// for (i = 0; i < L; i++) entry.pos()[i][Lemma.byteAt(lemma, i) - 1].add(idx);
}
for (int i = SwedishGenerator.MIN_LEN; i < index.length; i++) if (index[i].words().size() <= 0) throw new RuntimeException("No words for length " + i);
for (int i = 2; i < index.length; i++) if (index[i].words().size() <= 0) throw new RuntimeException("No words for length " + i);
return new Dict(Arrays.stream(index).map(i -> {
var words = i.words().toArray();
int numWords = words.length;