...
Step | Example | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. On the cTAKES downloads page, download the User Installation package.
|
| |||||||||||||||||
2. (Recommended) Verify the downloaded files against a signature to ensure you have the proper and complete file. From the following directory, download the signature file that corresponds to your download from step 1 https://www.apache.org/dist/ctakes/ctakes-4.0.0/ Please do not download any of the files that end with .zip or .gz directly from apache.org/dist - use the downloads page listed in step 1 if you need to download cTAKES itself so that a mirror can be used. | No example | |||||||||||||||||
3. Unzip the file you downloaded into a directory that you want to be the cTAKES install location. The compressed files contain a single directory at the top level. This folder we will call <cTAKES_HOME>. You will need to refer to this directory later.
Linux:
| Windows:
| |||||||||||||||||
4. Download the cTAKES resources ZIP file with a matching version from the ctakesresources project (More information on cTAKES models). These resources are required to operate cTAKES.
| Windows:
| |||||||||||||||||
5. Copy (or move) the resources to cTAKES_HOME.
| Windows:
Linux:
Mac OSX:
|
...
- Using the bundled UIMA CAS Visual Debugger (CVD) to view the results stored as XCAS files or run the annotators
- Using the bundled UIMA Collection Processing Engine (CPE) to process documents in cTAKES_HOME/testdata directory
You These tools On Linux, you will need a windowing environment on Linux to run these tools.
Piper File
TBD
CAS Visual Debugger (CVD)
...
Step | Example | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. Open a command prompt and change to the cTAKES_HOME directory:
|
Linux:
| ||||||||||||
2. Create a directory for some test data. | Windows: | ||||||||||||
3. Download this sample file and place it into the testdata directory. | No example | ||||||||||||
4. Start the collection processing engine by running this command: | Windows:
Linux:
| ||||||||||||
5. This will bring up the Collection Processing Engine Configurator. In the Menu bar click File >Open CPE Descriptor | |||||||||||||
6. Navigate to the following file, which uses the AggregateCdaProcessor
| No example | ||||||||||||
7. Change the Collection reader Reader input directory to testdata, which contains a CDA file(s). Within the CAS Consumers pane of the same window, change the output directory to testdata/output | |||||||||||||
8. Click the Play button (green/blue play arrow near the bottom).
| |||||||||||||
9. You should see that one document was processed. You did process a collection of documents. In this case the collection only contained one just to show how to do it. Close the results window.
| |||||||||||||
10. Close the CPE application. You may be prompted to save changes. Since this was just a test you may click the No button. | No example |
Using the same CVD and CPE programs in the manner described above, you can test all the other components. The analysis engines and collection processing engines shipped with cTAKES for some of the annotators are described in the following table.
...
Annotator | Description | Example Piper file | Example Collection processing Engine (CPE) | ||
---|---|---|---|---|---|
Clinical Pipeline | The pipeline to obtain concepts and their attributes | <cTAKES_HOME>/TBD | <cTAKES_HOME>/desc/ctakes-clinical-pipeline/desc/collection_processing_engine/test1.xml | ||
Chunker | Obtain cTAKES Obtains phrasal chunk annotations | <cTAKES_HOME>/TBD | NA | ||
Dependency Parser | Obtain Obtains dependency parsing tree | <cTAKES_HOME>/TBD | <cTAKES_HOME>/desc/ctakes-dependency-parser/desc/collection_processing_engine/ClearParserTestCPE.xml | ||
Drug NER | The annotator to obtain drug annotations | Finds mentions of medications and medication attributes such as dose, strength, frequency... | <cTAKES_HOME>/TBD | <cTAKES_HOME>/desc/ctakes-drug-ner/desc/collection_processing_engine/DrugNER_PlainText_CPE.xml | |
Dictionary Lookup | Mapping cTAKES annotations to dictionaries Finds mentions of concepts from a dictionary (e.g., SNOMED _ CT or RxNorm | <cTAKES_HOME>/TBD | NA | ||
Dictionary Lookup Fast | Finds mentions of concepts from a dictionary (e.g., SNOMED CT or RxNorm |
| Identifying terms related to PAD | <cTAKES_HOME>/TBD<cTAKES_HOME>/desc/ctakes-pad-term-spotter/desc/collection_processing_engine/Radiology_Sample.xml | NA |
Relation Extractor | Annotate Finds certain relations (location of and degree of) between certain Event, Entity, and Modifier annotations | <cTAKES_HOME>/TBD | N/A | ||
Smoking Status | The annotator to obtain Finds document or patient-level smoking status | <cTAKES_HOME>/TBD | <cTAKES_HOME>/desc/ctakes-smoking-status/desc/collection_processing_engine/Sample_SmokingStatus_output_flatfile.xml | ||
Side Effect | The annotator to find Finds side effect mentions and sentences from clinical documents | <cTAKES_HOME>/TBD | <cTAKES_HOME>/desc/ctakes-side-effect/desc/collection_processing_engine/SideEffectCPE.xml |
...