You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/05/25 09:28:50 UTC

svn commit: r1127411 - /incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java

Author: joern
Date: Wed May 25 07:28:50 2011
New Revision: 1127411

URL: http://svn.apache.org/viewvc?rev=1127411&view=rev
Log:
OPENNLP-183 Removed null check, issue is in the perceptron normalization

Modified:
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java?rev=1127411&r1=1127410&r2=1127411&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java Wed May 25 07:28:50 2011
@@ -216,9 +216,6 @@ public class NameFinderME implements Tok
     additionalContextFeatureGenerator.setCurrentContext(additionalContext);
     bestSequence = beam.bestSequence(tokens, additionalContext);
     
-    if (bestSequence == null) // TODO: Fix this in extra jira issue!!!
-      return new Span[0];
-    
     List<String> c = bestSequence.getOutcomes();
 
     contextGenerator.updateAdaptiveData(tokens, (String[]) c.toArray(new String[c.size()]));