You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by co...@apache.org on 2012/02/15 11:41:45 UTC
svn commit: r1244431 -
/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java
Author: colen
Date: Wed Feb 15 10:41:45 2012
New Revision: 1244431
URL: http://svn.apache.org/viewvc?rev=1244431&view=rev
Log:
OPENNLP-429: Removed BaseModel.getFactory and fixed an exception message.
Modified:
incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java
Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java?rev=1244431&r1=1244430&r2=1244431&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java Wed Feb 15 10:41:45 2012
@@ -398,7 +398,8 @@ public abstract class BaseModel implemen
Class.forName(factoryName);
} catch (ClassNotFoundException e) {
throw new InvalidFormatException(
- "Could not find the POS factory class: " + factoryName);
+ "The model could not load an user extension because it is missing on the classpath: "
+ + factoryName);
}
toolFactory.validateArtifactMap();
@@ -473,10 +474,6 @@ public abstract class BaseModel implemen
return Version.parse(version);
}
- public BaseToolFactory getFactory() {
- return null;
- }
-
/**
* Serializes the model to the given {@link OutputStream}.
*