Skip to content

Commit

Permalink
Fix for ClipTokenizer (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaro authored Jul 25, 2022
1 parent 01738de commit 9e792a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allprojects {
group = 'org.vitrivr'

/* Our current version, on dev branch this should always be release+1-SNAPSHOT */
version = '3.12.0'
version = '3.12.1'

apply plugin: 'java-library'
apply plugin: 'maven-publish'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public long[] clipTokenize(String text) {
for (int i = 0; i < tokenCount; ++i) {
arr[i + 1] = (long) tokens.get(i);
}
if (tokenCount < arr.length) {
arr[tokenCount] = end;
if (tokenCount + 1 < arr.length) {
arr[tokenCount + 1] = end;
}
return arr;
}
Expand Down

0 comments on commit 9e792a6

Please sign in to comment.