...
The expert instructions below are short and require a lot of prerequisite setup on your own. If you need more help then follow the step by step instructions.
Eclipse
...
minimal install instructions
Prerequisites: Java JDK 1.6+, Eclipse IDE 4.2+, subversive plugin (or svn equivalent with appropriate SVN team provider connectors), m2e plugin (or mvn equivalent)
- Import Project > Maven > Checkout Maven Project from SCM and use: svn and https://svn.apache.org/repos/asf/incubator/ctakes/trunk
- Select all projects.
- Wait until Eclipse downloads and builds all of your projects (it may take up to 30 minutes depending on the machine).
- The various build helpers should run jcasgen and builds the projects for you. There should not be any reason to run mvn install, etc.
- (Optional) If you would like to launch the UIMA CVD or CPE GUI, run ctakes-clinical-pipeline/resources/launch/UIMA_<CVD | CPE>GUI--clinical_documents pipeline.launch
- (Optional) UIMA plug-ins called "UIMA Eclipse tooling and runtime support" can be installed from update site: http://www.apache.org/dist/uima/eclipse-update-site
...
Eclipse step by step install instructions
Preparing Java
Step | Example | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1. All forms of development require the Java SDK 1.6+. You can get it from java.com.
|
| ||||||||||
2. It is possible that some commands and programs can find the Java runtime that you want to be used but it is best to set the JAVA_HOME environment variable. Set the value of JAVA_HOME to the absolute path of the root of the Java Runtime environment that you want UIMA and cTAKES to use.
| |
Preparing Eclipse
If you are going to use Eclipse for development then follow these instructions.
Step | Example | ||
---|---|---|---|
1. Download and install Eclipse 4.2+. | No example | ||
2. Subversion Eclipse plug-in (based on Subversive site). We will use the one called "Subversive - SVN Team Provider"
Expand the Collaboration category. |
| ||
3. Subversion team provider connectors 1.7+. | | ||
4. Maven is already part of Eclipse, but more integration to Maven commands is needed.
Expand the Collaboration category. |
| ||
5. Maven SCM connector. | |
Compile the latest stable release in Eclipse
Step | Example | ||
---|---|---|---|
1. Import the cTAKES projects using Maven. | | ||
2. For SCM URL use "svn" in the drop-down
in the text field. |
|
Process documents using cTAKES
Step | Example | ||
---|---|---|---|
1. Launching the UIMA CAS Visual Debugger (CVD) or the Collection Processing Engine (CPE) from Eclipse can now be accomplished in the ctakes-clinical-pipeline project:
where you must select between CVD and CPE in the command. Other Run Configurations are also available in the Eclipse Run menu. | | ||
2. (Optional) Process data. | No example |
(Optional) UIMA tools plug-in
Developers may be interested in the Eclipse plug-ins provided by the UIMA community. They include, for example, a UIMA component descriptor editor.
Step | Example | |||||
---|---|---|---|---|---|---|
1. Find UIMA Eclipse plug-ins.
| | |||||
2. Install UIMA Eclipse plug-ins. | | |||||
3. (optional) Verify the installation of the UIMA Plug-ins. Go to Help -> About Eclipse -> Installation Details -> Plug-ins. You will see a dialog such as that i the next cell with plug-in names starting with "UIMA Eclipse:". | |
Command line
...
minimal install instructions
Prerequisites: Java JDK 1.6+, SVN, Maven 3.0+
...
For further information see the Apache Source Code Repository page.
...
Command line step by step install instructions
...
Preparing
...
command line
...
tools
...
Step | Example |
---|---|
1. Navigate to the Ant download site on apache.org and install Ant 1.7.1+ | 2. Download Ant 1.7.1+. Unzip the file you downloaded to a local directory. We will call this <ANT_HOME> Follow the instructions for installing Ant on apache.org. This will include changing the PATH and ANT_HOME environment variables. |
Info |
---|
The UIMA command to generate the type system through the command line (JCasGen) is not shipped with cTAKES at this time. The common type system has already been generated for you. If you need, for some reason, to generate this then you will need to use the method described for Eclipse or install the entire UIMA SDK. |
...
Step
...
Example
...
1. Follow the first steps of the "Compile the latest stable release in Eclipse" (which do not require Eclipse) until you get to the part about creating a new project in Eclipse.
...
No example
...
Install SVN |
| ||
2. Create a directory for your cTAKES project.
We'll call this CTAKES_HOME | |||
3. Checkout the cTAKES project. |
Code Block |
---|
svn co https://svn.apache.org/repos/asf/incubator/ctakes/trunk ctakes-3.0 |
|
|
4. Compile the complete set. |
Code Block |
---|
mvn clean compile package |
| |
...
No example
3. To compile cTAKES, change to the <cTAKES_HOME> directory and simply run:
Code Block | ||
---|---|---|
| ||
ant |
...