Hi Chahal Arora, > It's working fine for me -- excellent.
> RegexBpFinder in package org.apache.ctakes.examples.ae ... resolved by moving > the file to package --The ctakes-examples module is kind of isolated as far as other modules are concerned. Ctakes-examples knows about other modules, but they don't know about it. They are not really meant to be used "in production". > the second time I run this code, I get an thread error -- I think that example was only meant to be run once. -- I have checked in an update that allows multiple calls. Sean -----Original Message----- From: Chahal Arora [mailto:[email protected]] Sent: Thursday, November 23, 2017 7:57 AM To: [email protected] Subject: Re: Piper file for Lab Value Finder [EXTERNAL] Hi Sean, Thank you for your response. It's working fine for me. I just had to add another lookup dictionary path in the piper file to get the same results. Now, I was also trying to add RegexBpFinder in package org.apache.ctakes.examples.ae . Earlier it was giving an error of resource not found when I added it to my piper file which was resolved by moving the file to package org.apache.ctakes.core.ae. After this when the second time I run this code, I get an thread error related - Task java.util.concurrent.FutureTask@c26b853 rejected from java.util.concurrent.ThreadPoolExecutor@faf65e5[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1] The code where it throws exception is - final Future<List<Pair<Integer>>> future = _executor.submit( callable ); which is at line 121 in class RegexSpanFinder of package - org.apache.ctakes.core.util.regex Regards Chahal Arora Software Engineer Raxa On Thu, Nov 23, 2017 at 1:10 AM, Finan, Sean < [email protected]> wrote: > Hi Chahal Arora, > > >1) Is there any piper file available for LabValueFinder that I can > >use to > make it work? > The LabValueFinder isn't part of any default workflow. However, it > can be added to any piper with the line: > > add LabValueFinder > > My recommendation is that you create your own piper file. It only > needs two lines: > > load DefaultFastPipeline > add LabValueFinder > > That is it. > > > >2) I am trying to create a piper file for it by referring to the > setUpBeforeClass method of LabAnnotatorTest.java in > > You should need to worry about all of that. For the defaults, just > create a piper as above. The test class builds up a pipeline to run > before the LabValueFinder. "load DefaultFastPipeline" in a piper file > will do the same thing. > > Sean > > > > > -----Original Message----- > From: Chahal Arora [mailto:[email protected]] > Sent: Wednesday, November 22, 2017 2:31 PM > To: [email protected] > Subject: Piper file for Lab Value Finder [EXTERNAL] > > Hi All, > > I am able to run and reproduce the results of labs annotator project( > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues. > apache.org_jira_browse_CTAKES-2D441&d=DwIBaQ&c=qS4goWBT7poplM69zy_ > 3xhKwEW14JZMSdioCoppxeFU&r=fs67GvlGZstTpyIisCYNYmQCP6r0bc > pKGd4f7d4gTao&m=NxewdFWXsR-EBVhF1Q7d2R2wPhD2bxbyDPEAMdFYbQg&s=GB5580UH > fpO_ > F2xHEwYY3cRfdoJXQFVg8jldQhwF7H0&e=) but I am having problems > reproducing the results when I am using it through ctakes-core (ctakes > 4.0.1). I have few queries and would really appreciate the help- > > 1) Is there any piper file available for LabValueFinder that I can use > to make it work? > > 2) I am trying to create a piper file for it by referring to the > setUpBeforeClass method of LabAnnotatorTest.java in the > ctakes-contrib/LabAnnotator project at > https://urldefense.proofpoint.com/v2/url?u=https-3A__urldefense.proofpoint&d=DwIBaQ&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=JwC8nV-iS_BEe4u-MBFxR9sOFmwRVKBrL_u8v-CFtrk&s=6T1KhPb9sS4oq8lTxS5sA0u-drUa_VvZ-pPknd5uN2Y&e=. > com/v2/url?u=https-3A__issues.apache.org_jira_browse_CTAKES- > 2D441&d=DwIBaQ&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r= > fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=NxewdFWXsR- > EBVhF1Q7d2R2wPhD2bxbyDPEAMdFYbQg&s=GB5580UHfpO_ > F2xHEwYY3cRfdoJXQFVg8jldQhwF7H0&e= and the documentation available at > https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki. > apache.org_confluence_display_CTAKES_Piper-2BFiles&d=DwIBaQ& > c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r= > fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=NxewdFWXsR- > EBVhF1Q7d2R2wPhD2bxbyDPEAMdFYbQg&s=jvNr8HBl-yJStiC_ > plcVFUahTD-JZ8JTkh75s-ZC6Gk&e=. Is this the right approach this or I > should look for other documentation. > > > Regards > Chahal Arora >
