...
DBConsumer Component Configuration
Add the DBConsumer to the end of your pipeline, or add it to your CPE descriptor; the annotator configuration file is YTEX_HOME\desc\ctakes-ytex-uima\desc\analysis_engine\DBConsumer.xml
The DBConsumer UIMA Annotation Engine accepts the following configuration properties:
...
- Store CAS
Should the UIMA XML representation of document annotations be stored in the database? The gzipped uima xml is stored in thethe document.cas column. Set to false to speed up the DBConsumer. Use the DBAnnotationViewer to view the CAS directly from the database.
- Store Doc Text
Should the document text be stored in the database? The document text is stored in the document.doc_text column. Set to false to speed up the DBConsumer.
...
- Types to Ignore
UIMA annotations that should not be stored in the database. Add annotations that you are not interested in to this list to speed up the DBConsumer. Take a look at theref_uima_type
table for a list of types stored in the database. The class name should give you an idea of what each annotation represents.
- insert Annotation Containment Links
Should anno_contain entries be created? Set to false to speed up the DBConsumer. Seeanno_contain
(below) for information on what this is.
Using YTEX DBAnnotationViewer
For a graphical representation of document annotations, use the DBAnnotationViewer. This modified viewer retrieves the document CAS from the database (as opposed to the plain-vanilla AnnotationViewer which retrieves the CAS from the file system). To run, open a command prompt/shell, and run the following commands.
Windows:
Code Block | ||
---|---|---|
| ||
cd CTAKES_HOME
bin/setenv.bat
java -cp lib/*;desc;resources org.apache.ctakes.ytex.tools.DBAnnotationViewerMain |
Linux:
Code Block | ||
---|---|---|
| ||
cd CTAKES_HOME . bin/ctakes.profile java -cp lib/*;desc;resources org.apache.ctakes.ytex.tools.DBAnnotationViewerMain |
Annotation Tables
document
...