mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(ngram) Fix index range in NgramLexicon to an avoid exception
This commit is contained in:
parent
65e3caf402
commit
bb6b51ad91
@ -80,7 +80,7 @@ public class NgramLexicon {
|
||||
int ct = counts.get(ordered);
|
||||
|
||||
if (ct > 0) {
|
||||
positions.add(Arrays.copyOfRange(parts, i - length, length));
|
||||
positions.add(Arrays.copyOfRange(parts, i - length, i));
|
||||
}
|
||||
|
||||
if (i >= hashes.length)
|
||||
|
Loading…
Reference in New Issue
Block a user