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/07/17 22:46:54 UTC

svn commit: r1362641 - /opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokenizerFactory.java

Author: colen
Date: Tue Jul 17 20:46:54 2012
New Revision: 1362641

URL: http://svn.apache.org/viewvc?rev=1362641&view=rev
Log:
OPENNLP-524: Tokenizer models from 1.5.0 don't have the alphanumeric pattern parameter. In this case we should use the default instead of aborting the execution.

Modified:
    opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokenizerFactory.java

Modified: opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokenizerFactory.java
URL: http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokenizerFactory.java?rev=1362641&r1=1362640&r2=1362641&view=diff
==============================================================================
--- opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokenizerFactory.java (original)
+++ opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokenizerFactory.java Tue Jul 17 20:46:54 2012
@@ -83,10 +83,6 @@ public class TokenizerFactory extends Ba
   @Override
   public void validateArtifactMap() throws InvalidFormatException {
 
-    if (this.artifactProvider.getManifestProperty(ALPHA_NUMERIC_PATTERN) == null)
-      throw new InvalidFormatException(ALPHA_NUMERIC_PATTERN
-          + " is a mandatory property!");
-
     if (this.artifactProvider
         .getManifestProperty(USE_ALPHA_NUMERIC_OPTIMIZATION) == null)
       throw new InvalidFormatException(USE_ALPHA_NUMERIC_OPTIMIZATION