Skip to content

Commit

Permalink
Merge pull request #1603 from dkpro/refactoring/1602-Upgrade-dependen…
Browse files Browse the repository at this point in the history
…cies

#1602 - Upgrade dependencies
  • Loading branch information
reckart authored Nov 17, 2024
2 parents 88612dd + bf2c15b commit a7a04ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dkpro-core-opennlp-asl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<url>https://dkpro.github.io/dkpro-core/</url>

<properties>
<opennlp.version>2.3.3</opennlp.version>
<opennlp.version>2.5.0</opennlp.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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[]
Expand Down

0 comments on commit a7a04ea

Please sign in to comment.