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

#1602 - Upgrade dependencies #1603

Merged
merged 2 commits into from
Nov 17, 2024
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
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