Revision: 18842
          http://sourceforge.net/p/gate/code/18842
Author:   markagreenwood
Date:     2015-07-30 10:43:43 +0000 (Thu, 30 Jul 2015)
Log Message:
-----------
fixed a bug in the orthomatcher which meant that when matching unknowns we 
would never match against the last annotation of a given type in the document 
-- updated the test files to match as we now find more coreferenced annotations 
than before

Modified Paths:
--------------
    gate/trunk/src/main/gate/creole/orthomatcher/OrthoMatcher.java
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655

Modified: gate/trunk/src/main/gate/creole/orthomatcher/OrthoMatcher.java
===================================================================
--- gate/trunk/src/main/gate/creole/orthomatcher/OrthoMatcher.java      
2015-07-30 08:53:02 UTC (rev 18841)
+++ gate/trunk/src/main/gate/creole/orthomatcher/OrthoMatcher.java      
2015-07-30 10:43:43 UTC (rev 18842)
@@ -542,7 +542,7 @@
       // TODO:  The below results in a assigning the unknown's to the last 
annotation that it matches in a document.
       // It would probably be better to first start with things which precede 
the current unknown and then do
       // annotations after
-      matchWithPrevious(unknown, 
unknownString,sortedAnnotationsForAType,sortedAnnotationsForAType.size() - 1);
+      matchWithPrevious(unknown, 
unknownString,sortedAnnotationsForAType,sortedAnnotationsForAType.size());
 
     } //while though unknowns
 

Modified: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
===================================================================
(Binary files differ)

Modified: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
===================================================================
(Binary files differ)

Modified: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
===================================================================
(Binary files differ)

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


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to