Package uk.ac.cam.ch.wwmm.ptclib.xml

Examples of uk.ac.cam.ch.wwmm.ptclib.xml.StandoffTable


        Nodes nes = sdoc.query("//ne|//datasection");
        for(int i=0;i<nes.size();i++) {
          XOMTools.removeElementPreservingText((Element)nes.get(i));
        }
       
        StandoffTable st = new StandoffTable(sdoc.getRootElement());
       
        if(offsets != null && offsets.size() > 0) {
          //String paperStr = doc.getValue();
          List<Integer> startOffsets = new ArrayList<Integer>();
          List<Integer> endOffsets = new ArrayList<Integer>();
View Full Code Here


  private ProcessingDocument makeDocument(Document sourceDoc) throws Exception {
    ProcessingDocument procDoc = new ProcessingDocument();
   
    procDoc.doc = new Document((Element)XOMTools.safeCopy(sourceDoc.getRootElement()));
    XMLSpanTagger.tagUpDocument(procDoc.doc.getRootElement(), "a");
    procDoc.standoffTable = new StandoffTable(procDoc.doc.getRootElement());

    return procDoc;
  }
View Full Code Here

TOP

Related Classes of uk.ac.cam.ch.wwmm.ptclib.xml.StandoffTable

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.