Package org.apache.ctakes.ytex.uima.types

Examples of org.apache.ctakes.ytex.uima.types.Date


      while (iter.hasNext()) {
        Annotation anno = iter.next();
        try {
          Span span = Chronic.parse(anno.getCoveredText());
          if (span != null && span.getBeginCalendar() != null) {
            Date date = new Date(jCas);
            date.setBegin(anno.getBegin());
            date.setEnd(anno.getEnd());
            date.setDate(tlDateFormat.get().format(
                span.getBeginCalendar().getTime()));
            date.addToIndexes();
          }
        } catch (Exception e) {
          if (log.isDebugEnabled())
            log.debug(
                "chronic failed on: " + anno.getCoveredText(),
View Full Code Here

TOP

Related Classes of org.apache.ctakes.ytex.uima.types.Date

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.