introduce bitloops
This commit is contained in:
@@ -48,15 +48,6 @@ public class MainTest {
|
||||
this.verbose = false;
|
||||
}};
|
||||
static final Dict dict = DictData.DICT;//loadDict(opts.wordsPath);
|
||||
public static Dict loadDict(String wordsPath) {
|
||||
var map = new LongArrayList(100_000);
|
||||
try (var lines = Files.lines(Path.of(wordsPath), StandardCharsets.UTF_8)) {
|
||||
lines.forEach(line -> CsvIndexService.lineToLemma(line, map::add));
|
||||
return Dicts.makeDict(map.toArray());
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Failed to load dictionary from " + wordsPath, e);
|
||||
}
|
||||
}
|
||||
@Test
|
||||
void testExtractSlots() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user