Clean and rebuild the example project in order to set the correct paths in all generated components (also the path to the main script location). If the builder preference "import by name" is activated, then a new TextMarker project should rather be created in order to automatically include the correct UIMA datapath. Simply copy all elements into the newly created project afterwards.
)Update 20100212: Validé pour Apache UIMA Version 2.2.2-incubating Binary sous linux et Version 2.3.0-incubatingINSTALLATION
2. Puis l'installer en la désarchivant dans votre le répertoire parent de votre UIMA_HOME car l'archive contient le répertoire apache-uima qui contient le répertoire addons. De cette manière addons se retrouvera dans votre apache-uima.export UIMAADDONSDISTANTDIR=uimaj-annotator-addons-2.3.0-incubatingexport UIMAADDONSARCHIVEFILE=uimaj-annotator-addons-2.3.0-incubating-bin.zipwget "http://mirror.mkhelif.fr/apache/incubator/uima/binaries/${UIMAADDONSDISTANTDIR}/${UIMAADDONSARCHIVEFILE}"
CONFIGURATIONSunzip "${UIMAADDONSARCHIVEFILE}" -d "$UIMA_HOME/.."
$UIMA_HOME/examples/descriptors/analysis_engine/EN LIGNE DE COMMANDE
A TRAVERS UN GUI HORS ECLIPSE$UIMA_HOME/bin/runAE.sh $UIMA_HOME/examples/descriptors/analysis_engine/SimpleTokenAndSentenceAnnotator.xml $UIMA_HOME/examples/data/ $UIMA_HOME/examples/data/processed
Ensuite il faut compiler les outils (requiert JAVA_HOME, ant est dispo dans lib/). Après avoir migrer les deux archives dans votre répertoire d'applications (ici $APPLI).wget http://prdownloads.sourceforge.net/opennlp/opennlp-tools-1.3.0.tgz?downloadwget -rc http://opennlp.sourceforge.net/models-1.3/find opennlp.sourceforge.net/models-1.3/ -name "index*" -exec rm {} + ;mv opennlp.sourceforge.net/models-1.3 opennlp-models-1.3.0zip -r opennlp-models-1.3.0.zip opennlp-models-1.3.0rm -r opennlp.sourceforge.net
tar -xvzf opennlp-tools-1.3.0.tgzln -s opennlp-tools-1.3.0 opennlpcd opennlp./build.sh
export OPENNLP_HOME=$APPLI/opennlpunzip opennlp-models-1.3.0.zip -d $OPENNLP_HOMEln -s opennlp-models-1.3.0 $OPENNLP_HOME/models
export OPENNLP_HOME=$APPLI/opennlpexport CLASSPATH=${OPENNLP_HOME}/lib/ant.jar:${OPENNLP_HOME}/lib/jakarta-ant-optional.jar:${OPENNLP_HOME}/lib/jwnl-1.3.3.jar:${OPENNLP_HOME}/lib/maxent-2.4.0.jar:${OPENNLP_HOME}/lib/trove.jar:${OPENNLP_HOME}/output/opennlp-tools-1.3.0.jar:${CLASSPATH}
echo "Jules Verne was a French author who helped pioneer the science-fiction genre. He was born in the bustling harbor city of Nantes in Western France in 1828." > /tmp/text ;
java opennlp.tools.lang.english.SentenceDetector \
${OPENNLP_HOME}/models/english/sentdetect/EnglishSD.bin.gz < /tmp/text |
java -Xmx400m opennlp.tools.lang.english.NameFinder \
${OPENNLP_HOME}/models/english/namefind/*.bin.gz
cd $APPLIunzip uimaj-2.2.2-incubating-bin.zip
mv apache-uima apache-uimaj-2.2.2-incubating-bin
ln -s apache-uimaj-2.2.2-incubating-bin apache-uimaj
#-- UIMAexport UIMA_HOME=${APPLI}/apache-uimajexport PATH=${UIMA_HOME}/bin:$PATH#export UIMA_CLASSPATH=/dir/to/my/component.jar#export UIMA_LOGGER_CONFIG_FILE=$UIMA_HOME/config/myLoggerConfig.properties