Revision: 14595
          http://gate.svn.sourceforge.net/gate/?rev=14595&view=rev
Author:   valyt
Date:     2011-11-23 13:20:06 +0000 (Wed, 23 Nov 2011)
Log Message:
-----------
Removed some dead code.

Modified Paths:
--------------
    mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java

Modified: 
mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java
===================================================================
--- mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java 
2011-11-23 12:36:46 UTC (rev 14594)
+++ mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java 
2011-11-23 13:20:06 UTC (rev 14595)
@@ -1060,48 +1060,4 @@
   
     return null;
   }
-  
-  /**
-   * test code: to be removed
-   * @param args
-   * @throws IndexException 
-   */
-  public static void main (String[] args) throws Exception{
-    Gate.init();
-    // load the tokeniser plugin
-    Gate.getCreoleRegister().registerDirectories(new 
File("test/gate-home/plugins/ANNIE-tokeniser").toURI().toURL());
-//    buildIndex();
-    
-    String queries[] = new String[] {
-      "to {Measurement spec=\"2 to 20 seconds\"}"
-//      ,"{Sentence}"
-    };
-    for(String aQuery : queries) queryIndex(aQuery);
-    
-    System.exit(0);
-  }
-
-  private static transient QueryEngine qEngine;
-  
-  private static void queryIndex(String query) throws Exception {
-    if(qEngine == null)  qEngine = new QueryEngine(new File("index"));
-    
-    QueryRunner qRunner = qEngine.getQueryRunner(query);
-    while(!qRunner.isComplete()) {
-      if(qRunner.isActive()) {
-        Thread.sleep(50);
-      } else {
-        qRunner.getMoreHits();
-      }
-    }
-    System.out.println("Query \"" + query +"\" got " + qRunner.getHitsCount() 
+ " hits:");
-    for(Binding binding : qRunner.getHits(0, qRunner.getHitsCount() -1)){
-      String[][] text = qEngine.getHitText(binding);
-      for(int i = 0; i < text[0].length; i++){
-        System.out.print(text[0][i]);
-        if(text[1].length > i)System.out.print(text[1][i]);
-      }
-      System.out.println();
-    }
-  }
 }

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to