You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ctakes.apache.org by Natalia Connolly <na...@gmail.com> on 2014/08/04 16:35:58 UTC
Running cTAKES with a custom Lucene index?
Hi All,
I was wondering if anyone has succeeded in making cTAKES v.3.0 or higher
use a custom Lucene index? I've made a Lucene index using a code that's
modeled on CreateLuceneIndexFromDelimitedFile.java. I can browse it fine
with Luke 4.0.0.
I thought simply pointing out that index to
DictionaryLookupAnnotatorLucene (in IndexDirectory) would be sufficient,
but it does not work. Depending on the sequence of analysis engines I use
in runctakesCPE.sh, I get different errors.
Examples:
1. AggregatePlaintextUMLSProcessor + DictionaryLookupAnnotatorLucene
Error: in DictionaryLookupAnnotatorLucene, unable to find external resource
with key:DbConnection (why would a db connection be needed for reading a
Lucene index??)
2. AggregatePlaintextProcessor + DictionaryLookupAnnotatorLucene,
Error: in DictionaryLookupAnnotatorLucene, unable to find external resource
with key:UmlsIndexReader
3. AggregatePlaintextProcessor + UmlsDictionaryLookupAnnotator +
DictionaryLookupAnnotatorLucene, get RxnormIndexreader does not implement
JdbcConnectionResource
Error: UmlsDictionaryLookupAnnotator/RxnormIndexReader does not implement
the required interface
org.apache.ctakes.core.resource.jdbcConnectionResource.
I tried various other combinations of engines, and got a number of
different errors, mostly variations of the above.
If anyone managed to make cTAKES use a custom Lucene index, suggestions
would be very much appreciated.
Thank you!
Natalia