From 78bfce804ac22f53ed5bf710f70a3bcc1e1024ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Kottmann?= Date: Fri, 17 Feb 2017 12:32:11 +0100 Subject: [PATCH] OPENNLP-982: Allow loading of 1.5.x models --- .../src/main/java/opennlp/tools/util/model/BaseModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java b/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java index 20acd9df3..f70fb031f 100644 --- a/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java +++ b/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java @@ -416,7 +416,7 @@ protected void validateArtifactMap() throws InvalidFormatException { // Major and minor version must match, revision might be // this check allows for the use of models of n minor release behind current minor release if (Version.currentVersion().getMajor() != version.getMajor() || - Version.currentVersion().getMinor() - 2 > version.getMinor()) { + Version.currentVersion().getMinor() - 3 > version.getMinor()) { throw new InvalidFormatException("Model version " + version + " is not supported by this (" + Version.currentVersion() + ") version of OpenNLP!"); }