ChrisHegarty commented on code in PR #13427:
URL: https://github.com/apache/lucene/pull/13427#discussion_r1616246358
##########
lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/UserDictionary.java:
##########
@@ -134,7 +135,9 @@ private UserDictionary(List<String> entries) throws
IOException {
this.fst =
new TokenInfoFST(FST.fromFSTReader(fstCompiler.compile(),
fstCompiler.getFSTReader()));
int[][] segmentations = _segmentations.toArray(new
int[_segmentations.size()][]);
- assert entryIndex == rightIds.length;
+ if (entryIndex < rightIds.length) {
Review Comment:
I moved it up a couple of lines ( which makes sense ), but it cannot go any
further. We only wanna copy once after iterating the values.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]