Revision: 17851
          http://sourceforge.net/p/gate/code/17851
Author:   markagreenwood
Date:     2014-04-17 12:22:16 +0000 (Thu, 17 Apr 2014)
Log Message:
-----------
annotations copied from the original document into the fake segment document 
now retain their IDs which means running the coreference PR in a segment 
processing PR works, although running all of ANNIE inside the segment PR still 
messes up

Modified Paths:
--------------
    
gate/trunk/plugins/Alignment/src/gate/composite/impl/AbstractCombiningMethod.java

Modified: 
gate/trunk/plugins/Alignment/src/gate/composite/impl/AbstractCombiningMethod.java
===================================================================
--- 
gate/trunk/plugins/Alignment/src/gate/composite/impl/AbstractCombiningMethod.java
   2014-04-17 11:59:42 UTC (rev 17850)
+++ 
gate/trunk/plugins/Alignment/src/gate/composite/impl/AbstractCombiningMethod.java
   2014-04-17 12:22:16 UTC (rev 17851)
@@ -153,9 +153,9 @@
               : doc.getAnnotations(od.getAsName());
       String type = od.getOriginalAnnotation().getType();
       gate.FeatureMap f = od.getOriginalAnnotation().getFeatures();
-      Integer id;
+      Integer id = od.getOriginalAnnotation().getId();
       try {
-        id = aSet.add(new Long(od.getNewStartOffset()), new Long(od
+        aSet.add(id,new Long(od.getNewStartOffset()), new Long(od
                 .getNewEndOffset()), type, f);
         od.setNewAnnotation(aSet.get(id));
       }

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


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to