[ 
https://issues.apache.org/jira/browse/CTAKES-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169269#comment-14169269
 ] 

jay vyas commented on CTAKES-314:
---------------------------------

Still getting no output here... :(..  Maybe something I need to *statically 
initialize* that i've left out  ? 

{noformat}
  def getDefaultPipeline():AnalysisEngineDescription = {
    def builder = new AggregateBuilder
    
builder.add(AnalysisEngineFactory.createPrimitiveDescription(classOf[CopyNPChunksToLookupWindowAnnotations]));
    
builder.add(AnalysisEngineFactory.createPrimitiveDescription(classOf[RemoveEnclosedLookupWindows]));
    builder.add(UmlsDictionaryLookupAnnotator.createAnnotatorDescription());
    builder.add(createAnnotatorDescription());
    builder.add(PolarityCleartkAnalysisEngine.createAnnotatorDescription());
    builder.add(SimpleSegmentAnnotator.createAnnotatorDescription());
    builder.add(TokenizerAnnotatorPTB.createAnnotatorDescription());
    
builder.add(ContextDependentTokenizerAnnotator.createAnnotatorDescription());
    builder.add(createAnnotatorDescription());
    return builder.createAggregateDescription();
  }
  def main(args: Array[String]) {

    val aed:AnalysisEngineDescription = getDefaultPipeline();
      val jcas:JCas = JCasFactory.createJCas();
      jcas.setDocumentText("The patient is suffering from extreme pain due to 
shark bite. Recommend continuing use of aspirin, oxycodone, and coumadin. 
atient denies smoking and chest pain. Patient has no cancer. There is no sign 
of multiple sclerosis. Continue exercise for obesity and hypertension. ");

      SimplePipeline.runPipeline(jcas, aed);

      //Print out the tokens and Parts of Speech
      val iter = JCasUtil.select(jcas, classOf[IdentifiedAnnotation]).iterator()
      //val iter = JCasUtil.selectAll(jcas).iterator();
      while(iter.hasNext){
        val entity = iter.next();
        System.out.println( "Text:" + entity.getCoveredText() + " === POS: " + 
entity.getSubject + " " + entity.getConfidence + " " + entity.getSofa );
      }
  }
{noformat}

> BigTop/Hadoop cTAKES integration
> --------------------------------
>
>                 Key: CTAKES-314
>                 URL: https://issues.apache.org/jira/browse/CTAKES-314
>             Project: cTAKES
>          Issue Type: New Feature
>    Affects Versions: 3.2.0
>            Reporter: Pei Chen
>             Fix For: 3.2.3
>
>         Attachments: Napkin_cTAKES_Hadoop.JPG
>
>
> Placeholder to-
> Create a simple application that can take in different datasources (public 
> forums, twitter, etc.), scale up cTAKES using BigTop/Hadoop ecosystem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to