Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade OpenNLP from 2.3.2 to 2.5.3 #14130

Merged
merged 3 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ Other

* GITHUB#14091: Cover all DataType. (Lu Xugang)

* GITHUB#14130: Upgrade OpenNLP from 2.3.2 to 2.5.3, which transitively upgrades Slf4j
from 1.7.36 to 2.0.16. (Michael Froh)

======================= Lucene 10.1.0 =======================

API Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

package org.apache.lucene.analysis.opennlp.tools;

import java.io.IOException;
import opennlp.tools.postag.POSModel;
import opennlp.tools.postag.POSTagFormat;
import opennlp.tools.postag.POSTagger;
import opennlp.tools.postag.POSTaggerME;

Expand All @@ -29,8 +29,8 @@
public class NLPPOSTaggerOp {
private final POSTagger tagger;

public NLPPOSTaggerOp(POSModel model) throws IOException {
tagger = new POSTaggerME(model);
public NLPPOSTaggerOp(POSModel model) {
tagger = new POSTaggerME(model, POSTagFormat.PENN);
}

public synchronized String[] getPOSTags(String[] words) {
Expand Down
1 change: 0 additions & 1 deletion lucene/licenses/opennlp-tools-2.3.2.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions lucene/licenses/opennlp-tools-2.5.3.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4b544138ec079c1c73dc2c1b928506871c4b1b47
1 change: 0 additions & 1 deletion lucene/licenses/slf4j-api-1.7.36.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions lucene/licenses/slf4j-api-2.0.16.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0172931663a09a1fa515567af5fbef00897d3c04
8 changes: 4 additions & 4 deletions versions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"org.antlr:antlr4-runtime:4.11.1" : "d9953130,refs=4",
"org.apache.commons:commons-compress:1.19" : "5ce8cdc6,refs=2",
"org.apache.commons:commons-math3:3.6.1" : "85a1e4c6,refs=2",
"org.apache.opennlp:opennlp-tools:2.3.2" : "2f760bab,refs=4",
"org.apache.opennlp:opennlp-tools:2.5.3" : "2f760bab,refs=4",
"org.carrot2:morfologik-fsa:2.1.9" : "79af844b,refs=4",
"org.carrot2:morfologik-polish:2.1.9" : "fe494320,refs=3",
"org.carrot2:morfologik-stemming:2.1.9" : "79af844b,refs=4",
Expand All @@ -22,7 +22,7 @@
"org.ow2.asm:asm:9.6" : "d9953130,refs=4",
"org.ow2.asm:asm-commons:9.6" : "d9953130,refs=4",
"org.ow2.asm:asm-tree:9.6" : "d9953130,refs=4",
"org.slf4j:slf4j-api:1.7.36" : "2f760bab,refs=4",
"org.slf4j:slf4j-api:2.0.16" : "2f760bab,refs=4",
"ua.net.nlp:morfologik-ukrainian-search:4.9.1" : "fe494320,refs=3",
"xerces:xercesImpl:2.12.0" : "5ce8cdc6,refs=2"
},
Expand Down Expand Up @@ -56,7 +56,7 @@
"org.antlr:antlr4-runtime:4.11.1" : "6fbc4021,refs=5",
"org.apache.commons:commons-compress:1.19" : "6f16ff86,refs=2",
"org.apache.commons:commons-math3:3.6.1" : "152d9f78,refs=3",
"org.apache.opennlp:opennlp-tools:2.3.2" : "b91715f0,refs=6",
"org.apache.opennlp:opennlp-tools:2.5.3" : "b91715f0,refs=6",
"org.assertj:assertj-core:3.21.0" : "b7ba1646,refs=2",
"org.carrot2:morfologik-fsa:2.1.9" : "e077a675,refs=8",
"org.carrot2:morfologik-polish:2.1.9" : "cb00cecf,refs=5",
Expand All @@ -73,7 +73,7 @@
"org.ow2.asm:asm-commons:9.6" : "6fbc4021,refs=5",
"org.ow2.asm:asm-tree:9.6" : "6fbc4021,refs=5",
"org.pcollections:pcollections:3.1.4" : "6897bc09,refs=38",
"org.slf4j:slf4j-api:1.7.36" : "b91715f0,refs=6",
"org.slf4j:slf4j-api:2.0.16" : "b91715f0,refs=6",
"ua.net.nlp:morfologik-ukrainian-search:4.9.1" : "cb00cecf,refs=5",
"xerces:xercesImpl:2.12.0" : "6f16ff86,refs=2"
}
Expand Down
2 changes: 1 addition & 1 deletion versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ minJava = "21"
morfologik = "2.1.9"
morfologik-ukrainian = "4.9.1"
nekohtml = "1.9.17"
opennlp = "2.3.2"
opennlp = "2.5.3"
procfork = "1.0.6"
randomizedtesting = "2.8.1"
rat = "0.14"
Expand Down
Loading