Re: Relating MeasurementAnnotations to other IdentifiedAnnotations

2019-08-20 Thread Peter Abramowitsch
Hi Jeff

I've experimented with three approaches.

One is with the LabValueFinder which is included in the cTakes release -
that looks specifically for values associated with LabMentions.  It also
has an "eager" mode where it converts some MedicationMentions into
LabMentions, when the context seems right.  O2, Sodium etc.   I can't say
it works all that well and it is not capable of many different semantic
forms of the Name/Value association.  It is also too eager.. sometimes
creating LabMentions out of Medications when it shouldn't.

Another approach was to use something like Stanford's TokensRegex, that
allows you to construct regex-like rules where the segments are not strings
but Tokens, where you can query the attributes like POS, and NER .   For
Ctakes I had to adapt a UIMA package that must have been someone's thesis
project from the university of Nantes.

Copyright 2015 - CNRS (Centre National de Recherche Scientifique)
package fr.univnantes.lina.uima.tkregex

What I have is not ready for prime time and is still very rough.  It works
well but only for a limited set of rules

I used it to create a vitals detector.  Here's a snippet of the rules that
this package loads in at runtime, that creates an annotation called WGT
given these matchers
matcher NUM: [ postag == "CD" ];
matcher BE: [ lemma == "be" | lemma == "at"];
matcher WT: /(?i)^wt|^weight/;
matcher WUOM: /(?i)^kg|^lb|^pounds/;
term "WGT": WT BE? SYM? NUM WUOM;

The last approach was a home-built mechanism using the ConllDependencyNode
collection and the RelationArguments to detect the same connection between
certain typed pairs of Identified annotations.

Problem is. I've always been in prototyping mode and never had time to push
these methods to production ready status

Peter

On Tue, Aug 20, 2019 at 1:15 PM Jeffrey Miller  wrote:

> Hi,
>
> Is there any configuration or component in cTAKES that can be used to
> attribute a measurement annotation to another annotation that it applies
> to? For example, for "2 mm incision" where we relate "2 mm" to "incision"?
> It looks like there might be a roundabout way to find the head of the span
> of the MeasurementAnnotation in the output of the dependency parser, but I
> was wondering if this has been explored before? Perhaps the
> RelationExtractor component?
>
> I also have another more general question if anyone can help- how does the
> structure of the cTAKES type system effect how cTAKES works? I am looking
> for a general intuition of how the structure of the typesystem drives the
> larger cTAKES architecture?
>
> Thanks!
> Jeff
>


Re: ML NER for cTakes [EXTERNAL]

2019-08-20 Thread Miller, Timothy
Yes, this is still true. I know there are different folks working on ML-based 
NER but none of it is in main line cTAKES yet. There is some ML in the 
pre-processing stages, and the outputs of that are used by the dictionary tool, 
but the lookup itself is done without learning.
Tim

-Original Message-
From: Maral Amir 
mailto:maral%20amir%20%3cmaraljav...@gmail.com%3e>>
Reply-to: 
To: dev@ctakes.apache.org
Subject: ML NER for cTakes [EXTERNAL]
Date: Tue, 13 Aug 2019 11:52:40 -0700


Hi,

According to cTakes paper, "the ML NER module is not part of the current
cTAKES release". I was wondering if this is still true and the current
release still uses lookup for NER or we have ML NER for the current version.

Thanks,
Maral



Re: Clinical Processor [EXTERNAL]

2019-08-20 Thread Miller, Timothy
Can you send an error message that is as complete as possible? It is hard to 
tell from the information you've given.
Thanks
Tim


-Original Message-
From: Sébastien Boussard 
mailto:%3d%3fiso-8859-1%3fq%3fs%3de9bastien%3f%3d%20boussard%20%3cbouss...@bu.edu%3e>>
Reply-to: 
To: dev@ctakes.apache.org
Subject: Clinical Processor [EXTERNAL]
Date: Thu, 15 Aug 2019 10:28:51 -0700


I'm working on making a clinical processor, and I've been having a lot of
trouble with the JCasTermAnnotator. It's telling me that it's failing to
initialize. It is connecting to umls and validating. I've had this problem
for a while, is there any other java class I could use. I have the
dictionary and I tried to make a custom dictionary.

Thanks,
Sebastien Boussard



Relating MeasurementAnnotations to other IdentifiedAnnotations

2019-08-20 Thread Jeffrey Miller
Hi,

Is there any configuration or component in cTAKES that can be used to
attribute a measurement annotation to another annotation that it applies
to? For example, for "2 mm incision" where we relate "2 mm" to "incision"?
It looks like there might be a roundabout way to find the head of the span
of the MeasurementAnnotation in the output of the dependency parser, but I
was wondering if this has been explored before? Perhaps the
RelationExtractor component?

I also have another more general question if anyone can help- how does the
structure of the cTAKES type system effect how cTAKES works? I am looking
for a general intuition of how the structure of the typesystem drives the
larger cTAKES architecture?

Thanks!
Jeff