DB DictionaryLookupAnnotator sqlserver exception

2015-04-15 Thread Milinovich, Alex
Attempting to use the sqlserver jdbc connection for the DictionaryLookupAnnotator. When loading the aggregate engine, the connection is established fine, but then it gives the error - java.lang.Exception: Expected external resource to be:interface

Re: iterate on the features of CAS consumer (FileWriterCasConsumer)

2015-04-15 Thread samir chabou
Thanks Tim for your suggestion I'll try to experiment with the CasIOUtil method and keep the uesr/dev list posted.   On Wednesday, April 15, 2015 7:07 AM, Miller, Timothy timothy.mil...@childrens.harvard.edu wrote: The standard way that we do save redundant processing time is by

RE: DB DictionaryLookupAnnotator sqlserver exception

2015-04-15 Thread Finan, Sean
Hi Alex, This is some pretty odd behavior. Obviously, it is indicating that the resource type loaded or specified is not the correct class. Specification is (for the standard UMLS pipeline) in ctakes-dictionary-lookup/desc/analysis_engine/DictionaryLookupAnnotatorUMLS.xml lines #226 and

RE: DB DictionaryLookupAnnotator sqlserver exception

2015-04-15 Thread Milinovich, Alex
Ah, that led me in the right direction. I was accidentally combining Lucene for the rxnorm orange book with jdbc for the lookup. Swapped rxnorm orange book to the jdbc version and it works. Thanks! -Original Message- From: Finan, Sean [mailto:sean.fi...@childrens.harvard.edu] Sent:

Re: iterate on the features of CAS consumer (FileWriterCasConsumer)

2015-04-15 Thread samir chabou
Hi Tim,I was able to use CasIOUtil package to iterate on the Cas features. First, I need it to create a new Cas and I used JCasFactory for that. Below is the two lines of code. Thanks for your help JCas jcas = JCasFactory.createJCas(); //create a new case CasIOUtil.readJCas(jcas, new