Author: rwesten
Date: Tue Nov 27 12:27:05 2012
New Revision: 1414147

URL: http://svn.apache.org/viewvc?rev=1414147&view=rev
Log:
STANBOL-818: The ProcessingState now correctly rests the tokens list after 
processing a Section without any linkable tokens.

Modified:
    
stanbol/trunk/enhancer/engines/entitylinking/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/ProcessingState.java

Modified: 
stanbol/trunk/enhancer/engines/entitylinking/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/ProcessingState.java
URL: 
http://svn.apache.org/viewvc/stanbol/trunk/enhancer/engines/entitylinking/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/ProcessingState.java?rev=1414147&r1=1414146&r2=1414147&view=diff
==============================================================================
--- 
stanbol/trunk/enhancer/engines/entitylinking/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/ProcessingState.java
 (original)
+++ 
stanbol/trunk/enhancer/engines/entitylinking/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/ProcessingState.java
 Tue Nov 27 12:27:05 2012
@@ -217,12 +217,12 @@ public class ProcessingState {
      */
     private boolean initNextSentence() {
         section = null;
-        tokens.clear();
         processableTokensIterator = null;
         consumedIndex = -1;
         boolean foundProcessable = false;
         while(!foundProcessable && sections.hasNext()){
             section = sections.next();
+            tokens.clear(); //clear token for each section (STANBOL-818)
             Iterator<Span> enclosed = section.getEnclosed(enclosedSpanTypes);
             ChunkData activeChunk = null;
             while(enclosed.hasNext()){


Reply via email to