Skip to content

Commit

Permalink
Not throwing on multiple entries found for leftID
Browse files Browse the repository at this point in the history
I do not know if this was the right choice, but what prompted
me to remove the check that was throwing in the two following cases:

- When building any UNIDIC 3 with normalizeEntries == true
- When building a unidic-cwj-3.1.1-full (even with normalizeEntries == false)
  • Loading branch information
azagniotov committed Aug 22, 2023
1 parent 4bb6000 commit 011efbe
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ protected int putEntry(String[] entry) {
posDict.add(null);
}

String existing = posDict.get(leftId);
if (existing != null && existing.equals(fullPOSData) == false) {
// TODO: test me
throw new IllegalArgumentException("Multiple entries found for leftID=" + leftId);
}
posDict.set(leftId, fullPOSData);

buffer.putShort((short) (leftId << 3 | flags));
Expand Down

0 comments on commit 011efbe

Please sign in to comment.