Package org.apache.uima.jcas

Examples of org.apache.uima.jcas.JCas.reset()


    JCas jcas = JCasFactory.createJCasFromPath("src/main/resources/org/apache/ctakes/ytex/types/TypeSystem.xml");
    while(colReader.hasNext()) {
      count++;
      colReader.getNext(jcas.getCas());
      Assert.assertTrue("document should have a dockey", jcas.getAnnotationIndex(DocKey.type).iterator().hasNext());
      jcas.reset();
    }
    Assert.assertTrue("should have read some documents", count > 0);
  }

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.