Hi,
I have a pipeline defined by the below aggregate description (in Scala).

aed = {
  builder.add(SimpleSegmentAnnotator.createAnnotatorDescription)
  builder.add(SentenceDetector.createAnnotatorDescription)
  builder.add(TokenizerAnnotatorPTB.createAnnotatorDescription)
  builder.add(ThreadSafeLvg.createAnnotatorDescription)
  builder.add(ContextDependentTokenizerAnnotator.createAnnotatorDescription)
  builder.add(POSTagger.createAnnotatorDescription)
  builder.add(
    DefaultJCasTermAnnotator.createAnnotatorDescription(
      "path/to/file.xml"))
  builder.add(ClearNLPDependencyParserAE.createAnnotatorDescription)
  builder.add(PolarityCleartkAnalysisEngine.createAnnotatorDescription)
  builder.add(HistoryCleartkAnalysisEngine.createAnnotatorDescription)
  builder.add(SubjectCleartkAnalysisEngine.createAnnotatorDescription)
  // Temporal analysis steps.
  builder.add(EventAnnotator.createAnnotatorDescription)

builder.add(AnalysisEngineFactory.createEngineDescription(classOf[CopyPropertiesToTemporalEventAnnotator]))

builder.add(DocTimeRelAnnotator.createAnnotatorDescription("path/to/default/model.jar"))

builder.add(BackwardsTimeAnnotator.createAnnotatorDescription("path/to/default/model.jar"))
  builder.createAggregateDescription
}

At the end of the pipeline, I have added the four temporal pipeline stages
defined in
https://github.com/apache/ctakes/blob/ctakes-4.0.0/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/pipelines/FullTemporalExtractionPipeline.java
in order glean temporal information.

However, when running this pipeline against the following text: "The
patient underwent a CT scan in April which did not reveal lesions in his
liver", the temporal related fields are always null.

My processing pipeline goes as follows:

1) Run above pipeline.
2) Glean all IdentifiedAnnotations from index.
3) Filter to all EventMention type annotations (subclass of
IdentifiedAnnotation).
4) Filter to all MedicationMention, ProcecureMention,
DiseaseDisorderMention, or SignSymptomMention annotations (subclass of
EventMention).
5) Use these subclasses' "getRelativeTemporalContext" method to get the
TemporalTextRelations.

After step 5, the TemporalTextRelations are always null. Am I going about
ascertaining this information the wrong way? Referencing
http://qiicr.org/CI4CC-Spring2016-ASW/assets/CI4CC2016-Finan.pdf, this
sentence should yield TemporalTextRelations.

Thanks,

Mike




-- 
[image: MetiStream Logo - 500]
Mike Trepanier| Senior Engineer | MetiStream, Inc. |  m...@metistream.com |
845 - 270 - 3129 (m) | www.metistream.com

Reply via email to