Package org.apache.uima.ducc.sampleapps

Examples of org.apache.uima.ducc.sampleapps.DuccDocumentInfo


  public AbstractCas next() throws AnalysisEngineProcessException {
    JCas newcas = getEmptyJCas();
    newcas.setDocumentText(getNextDocument());
    newcas.setDocumentLanguage(language);
    DuccDocumentInfo di = new DuccDocumentInfo(newcas);
    di.setInputfile(inputFileName);
    di.setOutputfile(outputFileName);
    di.setDocseq(docInWI++);
    di.setByteoffset(wi.getBlockindex() * wi.getBlocksize() + nextDocOffset);
    di.addToIndexes();
    return newcas;
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.sampleapps.DuccDocumentInfo

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.