Skip to content

IdentifiedAnnotationUtil

Sean Finan edited this page Feb 9, 2026 · 1 revision

final public class IdentifiedAnnotationUtil

A one-stop shop for the most commonly requested Identified Annotation properties.

  • Author: SPF , chip-nlp
  • Version: %I%
  • Since: 4/21/2020

static public boolean isRealAffirmed( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: true iff the annotation is not generic, not uncertain, not negated and not conditional.

static public Collection<SemanticGroup> getSemanticGroups( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: Semantic Groups for all Umls Concepts of the annotation

static public Collection<SemanticTui> getSemanticTuis( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: Semantic Tuis for all Umls Concepts of the annotation

static public Collection<String> getCuis( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: cuis for all Umls Concepts of the annotation

static public Collection<String> getCodeSchemes( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: a collection of schemes with codes for the given annotation. e.g. snomed_us, rxnorm.

static public Collection<String> getCodes( final IdentifiedAnnotation annotation, final String schemeName )

  • Parameters:
    • annotation -
    • schemeName the name of a coding scheme. e.g. snomed_us, rxnorm.
  • Returns: all annotation codes for the given coding scheme.

static public Collection<String> getPreferredTexts( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: preferred texts for all Umls Concepts of the annotation

static public float getConfidence( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: the confidence of the annotation

static public Collection<SemanticGroup> getBestSemanticGroups( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: the best wsd SemanticGroups

static public SemanticGroup getBestSemanticGroup( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: the best wsd SemanticGroups

static public Collection<SemanticTui> getBestSemanticTuis( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: the best wsd SemanticTuis

static public Collection<String> getBestCuis( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: the best wsd cuis

static public Collection<String> getBestCodeSchemes( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: a collection of the best wsd schemes with codes for the given annotation. e.g. snomed_us, rxnorm.

static public Collection<String> getBestCodes( final IdentifiedAnnotation annotation, final String schemeName )

  • Parameters:
    • annotation -
    • schemeName the name of a coding scheme. e.g. snomed_us, rxnorm.
  • Returns: the best wsd annotation codes for the given coding scheme.

static public Collection<String> getBestPreferredTexts( final IdentifiedAnnotation annotation )

  • Parameters:
    • annotation -
  • Returns: preferred texts for the best wsd Umls Concepts of the annotation

Apache cTAKES

ctakes-core API

Python API

ctakes-core

patient
    AbstractPatientConsumer
    AbstractPatientFileWriter
    PatientNoteCollector
    PatientNoteStore
    PatientViewUtil
pipeline
    PipeBitLocator
    PipelineBuilder
    PiperFileReader
    PiperFileRunner
resource
    FileLocator
util
    CalendarUtil
    MutableUimaContext
    NumberedSuffixComparator
    Pair
    RelationArgumentUtil
    StringUtil
     annotation
         ConceptBuilder
         EssentialAnnotationUtil
         IdentifiedAnnotationBuilder
         IdentifiedAnnotationUtil
         OntologyConceptUtil
         SemanticGroup
         SemanticTui
     doc
         DocIdUtil
         JCasBuilder
         TextBySectionBuilder
         TextBySentenceBuilder
     log
         DotLogger
         FinishedLogger
     regex
         RegexSpanFinder
         TimeoutMatcher
     textspan
         DefaultAspanComparator
         DefaultTextSpanComparator
         DefaultTextSpan
         TextSpan



General

Clone this wiki locally