You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by ja...@apache.org on 2017/04/05 20:06:18 UTC
svn commit: r1790323 - in /ctakes/trunk/ctakes-distribution/src/main/bin:
runDictionaryCreator.sh runctakesGUI.sh
Author: james-masanz
Date: Wed Apr 5 20:06:18 2017
New Revision: 1790323
URL: http://svn.apache.org/viewvc?rev=1790323&view=rev
Log:
CTAKES-424 add scripts for running dictionary creation gui and piper gui from linux
Added:
ctakes/trunk/ctakes-distribution/src/main/bin/runDictionaryCreator.sh
ctakes/trunk/ctakes-distribution/src/main/bin/runctakesGUI.sh
Added: ctakes/trunk/ctakes-distribution/src/main/bin/runDictionaryCreator.sh
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-distribution/src/main/bin/runDictionaryCreator.sh?rev=1790323&view=auto
==============================================================================
--- ctakes/trunk/ctakes-distribution/src/main/bin/runDictionaryCreator.sh (added)
+++ ctakes/trunk/ctakes-distribution/src/main/bin/runDictionaryCreator.sh Wed Apr 5 20:06:18 2017
@@ -0,0 +1,47 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# If you plan to use the UMLS Resources, set/export env variables
+# set ctakes.umlsuser=[username]
+# set ctakes.umlspw=[password]
+# For example:
+# set ctakes.umlsuser=myusername
+# set ctakes.umlspw=mypassword
+# or add the properties
+# -Dctakes.umlsuser=[username] -Dctakes.umlspw=[password]
+# for example:
+# -Dctakes.umlsuser=myusername -Dctakes.umlspw="mypassw@rd"
+
+PRG="$0"
+while [ -h "$PRG" ]; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`/"$link"
+ fi
+done
+PRGDIR=`dirname "$PRG"`
+
+# Only set CTAKES_HOME if not already set
+[ -z "$CTAKES_HOME" ] && CTAKES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
+
+cd $CTAKES_HOME
+java -cp $CTAKES_HOME/desc/:$CTAKES_HOME/resources/:$CTAKES_HOME/lib/* -Dlog4j.configuration=file:$CTAKES_HOME/config/log4j.xml -Xms512M -Xmx3g org.apache.ctakes.gui.dictionary.DictionaryCreator
Added: ctakes/trunk/ctakes-distribution/src/main/bin/runctakesGUI.sh
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-distribution/src/main/bin/runctakesGUI.sh?rev=1790323&view=auto
==============================================================================
--- ctakes/trunk/ctakes-distribution/src/main/bin/runctakesGUI.sh (added)
+++ ctakes/trunk/ctakes-distribution/src/main/bin/runctakesGUI.sh Wed Apr 5 20:06:18 2017
@@ -0,0 +1,47 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# If you plan to use the UMLS Resources, set/export env variables
+# set ctakes.umlsuser=[username]
+# set ctakes.umlspw=[password]
+# For example:
+# set ctakes.umlsuser=myusername
+# set ctakes.umlspw=mypassword
+# or add the properties
+# -Dctakes.umlsuser=[username] -Dctakes.umlspw=[password]
+# for example:
+# -Dctakes.umlsuser=myusername -Dctakes.umlspw="mypassw@rd"
+
+PRG="$0"
+while [ -h "$PRG" ]; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`/"$link"
+ fi
+done
+PRGDIR=`dirname "$PRG"`
+
+# Only set CTAKES_HOME if not already set
+[ -z "$CTAKES_HOME" ] && CTAKES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
+
+cd $CTAKES_HOME
+java -cp $CTAKES_HOME/desc/:$CTAKES_HOME/resources/:$CTAKES_HOME/lib/* -Dlog4j.configuration=file:$CTAKES_HOME/config/log4j.xml -Xms512M -Xmx3g org.apache.ctakes.gui.pipeline.PiperCreator