Revision: 17376
          http://sourceforge.net/p/gate/code/17376
Author:   dgmaynard
Date:     2014-02-21 10:07:24 +0000 (Fri, 21 Feb 2014)
Log Message:
-----------
sentences doesn't have to start with a word now

Modified Paths:
--------------
    gate/trunk/plugins/ANNIE/resources/sentenceSplitter/grammar/split.jape

Modified: gate/trunk/plugins/ANNIE/resources/sentenceSplitter/grammar/split.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/sentenceSplitter/grammar/split.jape      
2014-02-21 09:40:55 UTC (rev 17375)
+++ gate/trunk/plugins/ANNIE/resources/sentenceSplitter/grammar/split.jape      
2014-02-21 10:07:24 UTC (rev 17376)
@@ -41,7 +41,7 @@
     Collections.sort(tokList, new OffsetComparator());
     for(Annotation token : tokList){
       String tokenKind = (String)token.getFeatures().get("kind");
-      if("word".equals(tokenKind)){
+      //if("word".equals(tokenKind)){
         Long startOffset = token.getStartNode().getOffset();
         if(startOffset.compareTo(endOffset) < 0){
           //create the new sentence
@@ -53,7 +53,7 @@
           }catch( InvalidOffsetException ioe){
             throw new GateRuntimeException(ioe);
           }
-        }
+       // }
         return;
       }
     }
@@ -86,7 +86,7 @@
     Collections.sort(tokList, new OffsetComparator());
     for(Annotation token : tokList){
       String tokenKind = (String)token.getFeatures().get("kind");
-      if("word".equals(tokenKind)){
+     // if("word".equals(tokenKind)){
         Long startOffset = token.getStartNode().getOffset();
         if(startOffset.compareTo(endOffset) < 0){
           //create the new sentence
@@ -97,9 +97,9 @@
           }catch( InvalidOffsetException ioe){
             throw new GateRuntimeException(ioe);
           }
-        }
+       // }
         return;
       }
     }
   }
-}
\ No newline at end of file
+}

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to