Re: getSeverity etc. for relation extractor

2014-03-25 Thread Chase Master
Thanks everyone, and sorry for the delayed response.  I tried adding
ddm.setSeverity(degreeOfTextRelation);  as Pei suggested, but I found that
setAttributesFromOriginal is not even being called, but rather, just
mapToMentions.  (It says that "with 3.1 don't need to map to proper mention
type, already creating as proper type"). I am working from the 3.1 tag.
 Should I check out the trunk and see if James' changes help?
Thanks
Chase


On Mon, Mar 24, 2014 at 3:30 PM, Dligach, Dmitriy <
dmitriy.dlig...@childrens.harvard.edu> wrote:

> Hi Everybody,
>
> I wanted to clarify something in connection with this thread of emails:
>
> The relation extractor is a machine learning system. Thus, it is going to
> be pretty hard to reverse engineer it to determine why a specific mistake
> has been made... However, if there is a certain pattern, say, of location_of
> that it cannot seem to handle, it should be fixable by adding more training
> examples that annotate this pattern.
>
> Dima
>
>
>
>
> On Mar 24, 2014, at 15:21, Masanz, James J.  wrote:
>
> > For the text "aneurysm in the middle cerebral artery"
> > 3.1 creates 3 location of relations
> > aneurysm : middle cerebral artery
> > aneurysm : cerebral artery
> > aneurysm : artery
> >
> > trunk also creates  3 location of relations
> > aneurysm : middle cerebral artery
> > aneurysm : cerebral artery
> > aneurysm : artery
> >
> > bodyLocation is not set for the IdentifiedAnnotation for "aneurysm" in
> either case.
> >
> > I've created CTAKES-290
> >
> > That jira issue will not address the fact the relation extractor does
> not create annotations for location of relations in "Rash on arm and leg".
> > I'll leave that determination to someone more familiar with the relation
> extractor
> >
> > -- James
> >
> > -Original Message-
> > From: Finan, Sean [mailto:sean.fi...@childrens.harvard.edu]
> > Sent: Monday, March 24, 2014 12:52 PM
> > To: dev@ctakes.apache.org
> > Subject: RE: getSeverity etc. for relation extractor
> >
> > Hi James, I don't have an exact phrase to use.  We used the location_of
> with a brain aneurysm project, but the corpus is elsewhere now.  However,
> it would tag things such as [aneurysm] : [middle cerebral artery] and
> [aneurysm] : [cerebral artery] - which is different from arm/leg, but an
> example of 2 locations for one entity.
> > 
> > From: Masanz, James J. [masanz.ja...@mayo.edu]
> > Sent: Monday, March 24, 2014 11:05 AM
> > To: 'dev@ctakes.apache.org'
> > Subject: RE: getSeverity etc. for relation extractor
> >
> > I ran  3.1  against "pain in arm and leg" and I get just one location_of
> relation.
> > And again no location_of relations for "rash on arm and leg"
> >
> > Sean, what was the exact phrase you used with the  incubator version?
> (or was that a while ago and lost)
> >
> > -Original Message-
> > From: Finan, Sean [mailto:sean.fi...@childrens.harvard.edu]
> > Sent: Friday, March 21, 2014 3:59 PM
> > To: dev@ctakes.apache.org
> > Subject: RE: getSeverity etc. for relation extractor
> >
> > Hi James,
> >
> > It is starting to resemble a row of falling dominoes ...
> >
> > I ran with an incubator version of the "location of" extractor and it
> did seem to find multiple locations for a single d/d.  Functionality may
> have changed since then.
> >
> > Thanks for all of your attention to this topic.
> >
> > Sean
> >
> > -Original Message-
> > From: Masanz, James J. [mailto:masanz.ja...@mayo.edu]
> > Sent: Friday, March 21, 2014 4:34 PM
> > To: 'dev@ctakes.apache.org'
> > Subject: RE: getSeverity etc. for relation extractor
> >
> > Running from trunk, I don't get any relations for "Rash on arm and leg"
> :(
> >
> > If I change the text to "pain in arm and leg" I get one
> LocationOfTextRelation annotation with arg1=SignSymptomMention (pain) and
> arg2=AnatomicalSiteMention (arm)
> >
> > Does the relation extractor support creating a 2nd relation involving
> pain - the one between pain and leg (is this just an unfortunate choice of
> example) or does the relation extractor need enhancement before it would
> create mutiple location_of for a single SignSymptomMention or
> DiseaseDisorderMention
> >
> > BTW, I will have to debug the setting of bodyLocation in the code
> because even for "pain in arm", when running from trunk, the
> LocationOfTextRelation annotation is being created, but the bodyLocation
> within the SignSymptomMention is not being set because the code in
> TemplateFillerAnnotator expects arg1 and arg2 to be swapped from what they
> currently are. I'll take a look at what it was in cTAKES 3.1 and find out
> if this is a bug in TemplateFillerAnnotator or something else.
> >
> > -- James
> >
> > -Original Message-
> > From: Finan, Sean [mailto:sean.fi...@childrens.harvard.edu]
> > Sent: Friday, March 21, 2014 12:30 PM
> > To: dev@ctakes.apache.org
> > Subject: RE: getSeverity etc. for relation extractor
> >
> >> until we have a definite, well-defined nee

YTEX install - one error after building

2014-03-25 Thread digital paula
Hi VJ,
 
As part of testing, I  did a fresh install of cTAKES with YTEX and everything 
installed correctly but after building I got one error pertaining to this page, 
five lines down.
 
https://svn.apache.org/repos/asf/ctakes/branches/ytex/ctakes-ytex-res/src/main/resources/org/apache/ctakes/ytex/umls/model/UMLS.hbm.template.xml
 
 
The error is this line:

 
Using Eclipse Juno, the error states:
 
Element type "hibernate-mapping" must be followed by either attribute 
specifications, ">" or "/>".
 
I tried using /> instead of > and putting it all on one line instead of two but 
can't seem to fix it.  
 
Also,  I was about to install the sectionizer separately as a module but I see 
that YTEX already has a sectionizer(SegmentRegexSectionizer) so I look forward 
to exploring it further. 
 
Regards,
Paula
 
> Date: Thu, 20 Mar 2014 14:08:32 -0400
> Subject: Re: YTEX Doc in cwiki
> From: vnga...@gmail.com
> To: dev@ctakes.apache.org
> 
> I plan to fix all the links.
> 
> I have not yet moved the scripts for the semantic similarity benchmark to
> cTAKES, so I dropped that from the cTAKES semantic similarity docs.  When
> those scripts get moved to cTAKES, I'll update the docs.
> 
> 
> On Thu, Mar 20, 2014 at 12:33 PM, Masanz, James J. 
> wrote:
> 
> > hi vijay,
> >
> > I have just skimmed a few sections so far.
> >
> > the page has links at the top to google docs pages and then links to our
> > web pages (the children pages) at the bottom. Is your intent to remove the
> > first 3 links once things are finalized?
> >
> > some of the examples on the Semantic+Similarity page use "cd CTAKES_HOME"
> > but later use %CTAKES_HOME%
> >
> > so it looks like you meant cd %CTAKES_HOME%
> >
> > I didn't see anything about the Similarity Benchmark on the new pages. Is
> > that still part of ytex?
> >
> > -- james
> >
> >
> > -Original Message-
> > From: vijay garla [mailto:vnga...@gmail.com]
> > Sent: Sunday, March 16, 2014 8:53 PM
> > To: dev@ctakes.apache.org
> > Subject: YTEX Doc in cwiki
> >
> > Hello All,
> >
> > I've made a first cut at moving and updating the YTEX docs over from google
> > code to the cTAKES confluence site.
> >
> > This is a first cut, and I'm trying to keep the YTEX docs separated, as it
> > is not yet in trunk/released, and I don't want to mess up any existing
> > docs.
> >
> > see https://cwiki.apache.org/confluence/display/CTAKES/YTEX+3.2
> >
> > Best,
> >
> > VJ
> >
  

temporal assertion module

2014-03-25 Thread digital paula
Hello cTAKES Developer Community,
 
There are about 10 packages under temporal with a total of maybe 80 or 90 files 
but no XML descriptor.  I see that the temporal module is not part of the 
released version in cTAKES since no documentation available in component use 
guide page: 
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+3.1+Component+Use+Guide#cTAKES3.1ComponentUseGuide-Components
 
I'd like to use the temporal module but I'm lost without the XML descriptors 
which is how I integrate modules into the clinical pipeline.  If anyone's using 
the temporal module I'd appreciate any help to get started which could be links 
to more info on usage, maybe even an XML descriptor or two on the temporal 
module.  
 
Thanks.
 
Regards,
Paula