Hello everyone,

I am trying to configure ctakes to read input texts from a database and I was 
wondering if anyone has a working example piper file that shows how to pass the 
database connection parameters?

I have been using the piper file creator gui (bin/runPiperCreator.sh) in ctakes 
4.0.1 on linux and my ultimate goal is to get ctakes to connect to an hsql 
database to read texts and write output back to the database.   The only 
example I found so far is 
desc/ctakes-core/desc/collection_reader/JdbcCollectionReader.example.xml but I 
do not understand how to convert the parameters in this file to a piper syntax, 
and I'm having trouble understanding the parameters in the second half of the 
file.

Does anyone have a working example that I could copy from?  I was hoping I 
could just give parameters in the piper file but what I tried below is clearly 
wrong, and I don't understand where the db connection resource name comes from 
or how to get one.

reader org.apache.ctakes.core.cr.JdbcCollectionReader SqlStatement="select * 
from meded_text"  DocTextColName=txt 
DbConnResrcName=jdbc:hsqldb:file:testdb/testdb.script

Any pointers would be much appreciated

Eva

Reply via email to