Revision: 17164
          http://sourceforge.net/p/gate/code/17164
Author:   valyt
Date:     2013-12-09 16:02:51 +0000 (Mon, 09 Dec 2013)
Log Message:
-----------
Log (info) the time taken to obtain the mention IDs from the semantic helper.

Modified Paths:
--------------
    mimir/trunk/mimir-core/src/gate/mimir/search/query/AnnotationQuery.java

Modified: 
mimir/trunk/mimir-core/src/gate/mimir/search/query/AnnotationQuery.java
===================================================================
--- mimir/trunk/mimir-core/src/gate/mimir/search/query/AnnotationQuery.java     
2013-12-09 14:12:36 UTC (rev 17163)
+++ mimir/trunk/mimir-core/src/gate/mimir/search/query/AnnotationQuery.java     
2013-12-09 16:02:51 UTC (rev 17164)
@@ -81,9 +81,13 @@
       isInDocumentMode = (helper.getMode() == 
           SemanticAnnotationHelper.Mode.DOCUMENT);
       // get the mention URIs
+      long start = System.currentTimeMillis();
       TermsResultSet trs = new AnnotationTermsQuery(query).execute(engine);
       if(trs.termStrings != null && trs.termStrings.length > 0 && 
          trs.termLengths != null) {
+        logger.info("Query: \"" + query.toString()  + "\". Obtained " + 
+            trs.termStrings.length + " mention IDs in " + 
+            (System.currentTimeMillis() - start) + " ms.");
         QueryNode[] disjuncts = new QueryNode[trs.termStrings.length];
         for(int index = 0; index < trs.termStrings.length; index++) {
           // create a term query for the mention URI

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


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to