Revision: 13835
          http://gate.svn.sourceforge.net/gate/?rev=13835&view=rev
Author:   nirajaswani
Date:     2011-05-19 07:10:23 +0000 (Thu, 19 May 2011)

Log Message:
-----------
while calculating IAA averages,  if the consensus annotation set exists, make 
sure the number used in denominator does not include consensus as one annotator.

Modified Paths:
--------------
    gate/trunk/plugins/Teamware_Tools/src/gate/qa/QAForTeamwarePR.java

Modified: gate/trunk/plugins/Teamware_Tools/src/gate/qa/QAForTeamwarePR.java
===================================================================
--- gate/trunk/plugins/Teamware_Tools/src/gate/qa/QAForTeamwarePR.java  
2011-05-19 01:17:12 UTC (rev 13834)
+++ gate/trunk/plugins/Teamware_Tools/src/gate/qa/QAForTeamwarePR.java  
2011-05-19 07:10:23 UTC (rev 13835)
@@ -661,14 +661,20 @@
               + (f.format((double)consensusMicro
                       / (columnAuthorNames.size() - 1))));
     }
+    
+    // if consensus annotation set exists, make sure the number used in 
+    // demoninator does not include consensus as one annotator 
+    int totalAuthors = consensusExists ? 
+            columnAuthorNames.size() - 1 : columnAuthorNames.size();
+    
     buffer.append("<br><b>Avg. IAA macro avg:</b> "
             + (f
                     .format((double)annotatorMacro
-                            / (columnAuthorNames.size() - 1))));
+                            / totalAuthors)));
     buffer.append("<br><b>Avg. IAA micro avg:</b> "
             + (f
                     .format((double)annotatorMicro
-                            / (columnAuthorNames.size() - 1))));
+                            / totalAuthors)));
     buffer.append("</body>\n</html>");
 
     BufferedWriter bw = null;


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

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to