ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1870992 - /ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
Date Sat, 07 Dec 2019 16:01:33 GMT
Author: seanfinan
Date: Sat Dec  7 16:01:32 2019
New Revision: 1870992

URL: http://svn.apache.org/viewvc?rev=1870992&view=rev
Log:
Wrong extension of wrong BaseToken.  NumToken, not NumberToken.

Modified:
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java

Modified: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java?rev=1870992&r1=1870991&r2=1870992&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
Sat Dec  7 16:01:32 2019
@@ -19,7 +19,6 @@
 package org.apache.ctakes.dictionary.lookup2.ae;
 
 import org.apache.ctakes.core.config.ConfigParameterConstants;
-import org.apache.ctakes.core.fsm.token.NumberToken;
 import org.apache.ctakes.core.resource.FileLocator;
 import org.apache.ctakes.core.util.collection.CollectionMap;
 import org.apache.ctakes.core.util.collection.HashSetMap;
@@ -319,9 +318,9 @@ abstract public class AbstractJCasTermAn
             continue;
          }
          final boolean isNonLookup = baseToken instanceof PunctuationToken
-               || baseToken instanceof NumberToken
-               || baseToken instanceof ContractionToken
-               || baseToken instanceof SymbolToken;
+                                     || baseToken instanceof NumToken
+                                     || baseToken instanceof ContractionToken
+                                     || baseToken instanceof SymbolToken;
          // We are only interested in tokens that are -words-
          if ( !isNonLookup ) {
             // POS exclusion logic for first word lookup



Mime
View raw message