Package org.apache.ctakes.coreference.eval.helpers

Examples of org.apache.ctakes.coreference.eval.helpers.SpanOffsetComparator


        }
        goldPairs.add(new int[]{goldSpan2id.get(p[0]), goldSpan2id.get(p[1])});
        //      ppt_arr.add(new int[]{span2id.get(p[0]), span2id.get(p[1])});
      }
      br.close();
      java.util.Collections.sort(goldSpans, new SpanOffsetComparator());
      ppt = new ParentPtrTree(goldPairs.toArray(new int[][] {}));
      goldEqvCls = new int[ppt.getSize()];
      ppt.equivCls(goldEqvCls);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here


        }
        sysPairs.add(new int[]{id1, id2});

      }
    }
    java.util.Collections.sort(sysSpans, new SpanOffsetComparator());
  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.coreference.eval.helpers.SpanOffsetComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.