Package org.apache.ctakes.smokingstatus.type

Examples of org.apache.ctakes.smokingstatus.type.SmokingDocumentClassification


      Iterator<?> docClsItr = indexes.getAnnotationIndex(SmokingDocumentClassification.type).iterator();
     
      //there should be just one SmokingDocumentClassification
      if (docClsItr.hasNext())
      {
        SmokingDocumentClassification dc = (SmokingDocumentClassification)docClsItr.next();
        iv_sb.append(dc.getClassification());
        iv_sb.append(NEW_LINE);
      }
      else
      {
        iv_sb.append("Error in RecordResolutionCasConsumer:NO classification");
View Full Code Here


       * sort record IDs ascending For production environment, we must
       * have just one record in the collection
       */
      String finalClassification = resolveClassification();

      SmokingDocumentClassification docClass = new SmokingDocumentClassification(
          jcas);
      docClass.addToIndexes();
      docClass.setClassification(finalClassification);

      resetCounts();
    } catch (Exception e) {
      throw new ResourceProcessException(e);
    }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.smokingstatus.type.SmokingDocumentClassification

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.