Package org.apache.ctakes.ytex.uima.model

Examples of org.apache.ctakes.ytex.uima.model.DocumentAnnotation


      String annoClass = anno.getClass().getName();
      if (!setTypesToIgnore.contains(annoClass)
          && this.uimaTypeMap.containsKey(annoClass)) {
        // should not ignore, and we know how to map this annotation
        listAnno.add(anno);
        DocumentAnnotation hibAnno = new DocumentAnnotation();
        hibAnno.setDocument(doc);
        hibAnno.setBegin(anno.getBegin());
        hibAnno.setEnd(anno.getEnd());
        hibAnno.setUimaType(uimaTypeMap.get(annoClass));
        sessionFactory.getCurrentSession().save(hibAnno);
        if (++count % batchSize == 0)
          sessionFactory.getCurrentSession().flush();
        doc.getDocumentAnnotations().add(hibAnno);
        mapAnnoToHib.put(anno, hibAnno);
View Full Code Here

TOP

Related Classes of org.apache.ctakes.ytex.uima.model.DocumentAnnotation

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.