From 57d6ada69688abf5b5a9d33fda81351061efa028 Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Fri, 15 Nov 2024 18:53:51 +0100 Subject: [PATCH] #1602 - Upgrade dependencies - opennlp 2.3.3 -> 2.5.0 --- dkpro-core-opennlp-asl/pom.xml | 2 +- .../src/main/java/org/dkpro/core/opennlp/OpenNlpPosTagger.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dkpro-core-opennlp-asl/pom.xml b/dkpro-core-opennlp-asl/pom.xml index 9696b539b..1f0a0b7b6 100644 --- a/dkpro-core-opennlp-asl/pom.xml +++ b/dkpro-core-opennlp-asl/pom.xml @@ -31,7 +31,7 @@ https://dkpro.github.io/dkpro-core/ - 2.3.3 + 2.5.0 diff --git a/dkpro-core-opennlp-asl/src/main/java/org/dkpro/core/opennlp/OpenNlpPosTagger.java b/dkpro-core-opennlp-asl/src/main/java/org/dkpro/core/opennlp/OpenNlpPosTagger.java index b3673f498..5f547606b 100644 --- a/dkpro-core-opennlp-asl/src/main/java/org/dkpro/core/opennlp/OpenNlpPosTagger.java +++ b/dkpro-core-opennlp-asl/src/main/java/org/dkpro/core/opennlp/OpenNlpPosTagger.java @@ -56,6 +56,7 @@ import eu.openminted.share.annotations.api.DocumentationResource; import eu.openminted.share.annotations.api.constants.OperationType; import opennlp.tools.postag.POSModel; +import opennlp.tools.postag.POSTagFormat; import opennlp.tools.postag.POSTaggerME; /** @@ -195,7 +196,7 @@ protected POSTaggerME produceResource(InputStream aStream) // tag::model-provider-decl[] // Create a new POS tagger instance from the loaded model - return new POSTaggerME(model); + return new POSTaggerME(model, POSTagFormat.CUSTOM); } }; // end::model-provider-decl[]