public final class OntologyConceptUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<IdentifiedAnnotation> |
getAnnotationsByCode(Collection<IdentifiedAnnotation> annotations,
String code) |
static Collection<IdentifiedAnnotation> |
getAnnotationsByCode(org.apache.uima.jcas.JCas jcas,
String code) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getAnnotationsByCode(org.apache.uima.jcas.JCas jcas,
T lookupWindow,
String code) |
static Collection<IdentifiedAnnotation> |
getAnnotationsByCui(Collection<IdentifiedAnnotation> annotations,
String cui) |
static Collection<IdentifiedAnnotation> |
getAnnotationsByCui(org.apache.uima.jcas.JCas jcas,
String cui) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getAnnotationsByCui(org.apache.uima.jcas.JCas jcas,
T lookupWindow,
String cui) |
static Collection<IdentifiedAnnotation> |
getAnnotationsByTui(Collection<IdentifiedAnnotation> annotations,
String tui) |
static Collection<IdentifiedAnnotation> |
getAnnotationsByTui(org.apache.uima.jcas.JCas jcas,
String tui) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getAnnotationsByTui(org.apache.uima.jcas.JCas jcas,
T lookupWindow,
String tui) |
static Collection<String> |
getCodes(Collection<IdentifiedAnnotation> annotations) |
static Collection<String> |
getCodes(Collection<IdentifiedAnnotation> annotations,
String schemeName) |
static Collection<String> |
getCodes(IdentifiedAnnotation annotation) |
static Collection<String> |
getCodes(IdentifiedAnnotation annotation,
String schemeName) |
static Collection<String> |
getCodes(org.apache.uima.jcas.JCas jcas) |
static Collection<String> |
getCodes(org.apache.uima.jcas.JCas jcas,
String schemeName) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getCodes(org.apache.uima.jcas.JCas jcas,
T lookupWindow) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getCodes(org.apache.uima.jcas.JCas jcas,
T lookupWindow,
String schemeName) |
static org.apache.uima.cas.FeatureStructure[] |
getConceptFeatureStructures(IdentifiedAnnotation annotation) |
static Map<String,Long> |
getCuiCounts(Collection<IdentifiedAnnotation> annotations) |
static Map<String,Long> |
getCuiCounts(org.apache.uima.jcas.JCas jcas) |
static Collection<String> |
getCuis(Collection<IdentifiedAnnotation> annotations) |
static Collection<String> |
getCuis(IdentifiedAnnotation annotation) |
static Collection<String> |
getCuis(org.apache.uima.jcas.JCas jcas) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getCuis(org.apache.uima.jcas.JCas jcas,
T lookupWindow) |
static Collection<OntologyConcept> |
getOntologyConcepts(IdentifiedAnnotation annotation) |
static java.util.stream.Stream<OntologyConcept> |
getOntologyConceptStream(IdentifiedAnnotation annotation) |
static Map<String,Collection<String>> |
getSchemeCodes(Collection<IdentifiedAnnotation> annotations) |
static Map<String,Collection<String>> |
getSchemeCodes(IdentifiedAnnotation annotation) |
static Map<String,Collection<String>> |
getSchemeCodes(org.apache.uima.jcas.JCas jcas) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getSchemeCodes(org.apache.uima.jcas.JCas jcas,
T lookupWindow) |
static Collection<String> |
getTuis(Collection<IdentifiedAnnotation> annotations) |
static Collection<String> |
getTuis(IdentifiedAnnotation annotation) |
static Collection<String> |
getTuis(org.apache.uima.jcas.JCas jcas) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
getTuis(org.apache.uima.jcas.JCas jcas,
T lookupWindow) |
static Collection<UmlsConcept> |
getUmlsConcepts(IdentifiedAnnotation annotation) |
static java.util.stream.Stream<UmlsConcept> |
getUmlsConceptStream(IdentifiedAnnotation annotation) |
public static org.apache.uima.cas.FeatureStructure[] getConceptFeatureStructures(IdentifiedAnnotation annotation)
annotation
- -public static java.util.stream.Stream<OntologyConcept> getOntologyConceptStream(IdentifiedAnnotation annotation)
annotation
- -public static Collection<OntologyConcept> getOntologyConcepts(IdentifiedAnnotation annotation)
annotation
- -public static java.util.stream.Stream<UmlsConcept> getUmlsConceptStream(IdentifiedAnnotation annotation)
annotation
- -public static Collection<UmlsConcept> getUmlsConcepts(IdentifiedAnnotation annotation)
annotation
- -public static Collection<String> getCuis(IdentifiedAnnotation annotation)
annotation
- -public static Collection<String> getTuis(IdentifiedAnnotation annotation)
annotation
- -public static Map<String,Collection<String>> getSchemeCodes(IdentifiedAnnotation annotation)
annotation
- -public static Collection<String> getCodes(IdentifiedAnnotation annotation)
annotation
- -public static Collection<String> getCodes(IdentifiedAnnotation annotation, String schemeName)
annotation
- -schemeName
- name of the scheme of interestpublic static Collection<String> getCuis(org.apache.uima.jcas.JCas jcas)
jcas
- -public static Map<String,Long> getCuiCounts(org.apache.uima.jcas.JCas jcas)
jcas
- -public static Collection<String> getTuis(org.apache.uima.jcas.JCas jcas)
jcas
- -public static Map<String,Collection<String>> getSchemeCodes(org.apache.uima.jcas.JCas jcas)
jcas
- -public static Collection<String> getCodes(org.apache.uima.jcas.JCas jcas)
jcas
- -public static Collection<String> getCodes(org.apache.uima.jcas.JCas jcas, String schemeName)
jcas
- -schemeName
- name of the scheme of interestpublic static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<String> getCuis(org.apache.uima.jcas.JCas jcas, T lookupWindow)
jcas
- -lookupWindow
- -public static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<String> getTuis(org.apache.uima.jcas.JCas jcas, T lookupWindow)
jcas
- -lookupWindow
- -public static <T extends org.apache.uima.jcas.tcas.Annotation> Map<String,Collection<String>> getSchemeCodes(org.apache.uima.jcas.JCas jcas, T lookupWindow)
jcas
- -lookupWindow
- -public static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<String> getCodes(org.apache.uima.jcas.JCas jcas, T lookupWindow)
jcas
- -lookupWindow
- -public static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<String> getCodes(org.apache.uima.jcas.JCas jcas, T lookupWindow, String schemeName)
jcas
- -lookupWindow
- -schemeName
- name of the scheme of interestpublic static Collection<String> getCuis(Collection<IdentifiedAnnotation> annotations)
annotations
- -public static Map<String,Long> getCuiCounts(Collection<IdentifiedAnnotation> annotations)
annotations
- -public static Collection<String> getTuis(Collection<IdentifiedAnnotation> annotations)
annotations
- -public static Map<String,Collection<String>> getSchemeCodes(Collection<IdentifiedAnnotation> annotations)
annotations
- -public static Collection<String> getCodes(Collection<IdentifiedAnnotation> annotations)
annotations
- -public static Collection<String> getCodes(Collection<IdentifiedAnnotation> annotations, String schemeName)
annotations
- -schemeName
- name of the scheme of interestpublic static Collection<IdentifiedAnnotation> getAnnotationsByCui(org.apache.uima.jcas.JCas jcas, String cui)
jcas
- -cui
- cui of interestpublic static Collection<IdentifiedAnnotation> getAnnotationsByTui(org.apache.uima.jcas.JCas jcas, String tui)
jcas
- -tui
- tui of interestpublic static Collection<IdentifiedAnnotation> getAnnotationsByCode(org.apache.uima.jcas.JCas jcas, String code)
jcas
- -code
- code of interestpublic static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<IdentifiedAnnotation> getAnnotationsByCui(org.apache.uima.jcas.JCas jcas, T lookupWindow, String cui)
jcas
- -lookupWindow
- -cui
- cui of interestpublic static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<IdentifiedAnnotation> getAnnotationsByTui(org.apache.uima.jcas.JCas jcas, T lookupWindow, String tui)
jcas
- -lookupWindow
- -tui
- tui of interestpublic static <T extends org.apache.uima.jcas.tcas.Annotation> Collection<IdentifiedAnnotation> getAnnotationsByCode(org.apache.uima.jcas.JCas jcas, T lookupWindow, String code)
jcas
- -lookupWindow
- -code
- code of interestpublic static Collection<IdentifiedAnnotation> getAnnotationsByCui(Collection<IdentifiedAnnotation> annotations, String cui)
annotations
- annotations for which codes should be foundcui
- cui of interestpublic static Collection<IdentifiedAnnotation> getAnnotationsByTui(Collection<IdentifiedAnnotation> annotations, String tui)
annotations
- annotations for which codes should be foundtui
- tui of interestpublic static Collection<IdentifiedAnnotation> getAnnotationsByCode(Collection<IdentifiedAnnotation> annotations, String code)
annotations
- annotations for which codes should be foundcode
- code of interestCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.