Examples of DemMarkable


Examples of org.apache.ctakes.coreference.type.DemMarkable

    nextID += lw.size();

    ArrayList<Chunk> lc = AnnotationSelector.selectDemonAndRelative(aJCas);
    for (int i = 0; i < lc.size(); ++i) {
      Chunk c = lc.get(i);
      DemMarkable m = new DemMarkable(aJCas, c.getBegin(), c.getEnd());
      m.setContent(c);
      m.setId(nextID + i);
      m.addToIndexes();
    }

    nextID += lc.size();
  }
View Full Code Here

Examples of org.apache.ctakes.coreference.type.DemMarkable

    numVecs++;
    pairList.addToIndexes();   
  }

  private void createDemPairs(LinkedList<Annotation> lm, int p, JCas jcas) {
    DemMarkable m = (DemMarkable) lm.get(p); // Current markable under consideration
    MarkablePairSet pairList = new MarkablePairSet(jcas);
    pairList.setAnaphor(m);
    NonEmptyFSList head = new NonEmptyFSList(jcas);
    pairList.setAntecedentList(head);
    NonEmptyFSList tail = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.