From 0052714e741ee8d5bc334cd9b41a4430f0621ce6 Mon Sep 17 00:00:00 2001 From: rey jean-Francois Date: Mon, 5 Aug 2013 17:23:25 +0200 Subject: [PATCH] bugfix 3pass --- HOWTO | 10 ++++++++-- INSTALL | 19 +++++++++++++++---- TODO | 1 + main_tools/ThirdPass.sh | 3 ++- tools/scripts/CheckThirdPass.sh | 2 +- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/HOWTO b/HOWTO index 4e01261..c18edcd 100644 --- a/HOWTO +++ b/HOWTO @@ -4,8 +4,8 @@ # version 1.0 # #---------------# -1\ Main options ---------------- +1\ Main scripts options +----------------------- There are five main options for otmedia scripts. -h : for help @@ -126,3 +126,9 @@ There are five main options for otmedia scripts. -R Do Recompose pass -s Do Scoring pass +4\ Modify configuration + + 4.1\ Scripts configurations + 4.2\ Speeral configurations + +5\ Modify binaries diff --git a/INSTALL b/INSTALL index e048dc2..bd4d44b 100644 --- a/INSTALL +++ b/INSTALL @@ -45,10 +45,21 @@ run install.sh and follow the white rabbit. The install.sh script download otmedia-2013-04.tar.gz and untar it in OTMEDIA_HOME/tools/SOLR/ . See SOLR.INSTALL file to install OTMEDIA SOLR DB. - - - - +4\ Install descriptions + +OTMEDIA_HOME + |-> bin/ + |-> cfg/ + |-> data/ + |-> main_tools/ + |-> tools/ + |-> COPYING + |-> CorpusOTMedia.txt + |-> HOWTO + |-> INSTALL + |-> README + |-> SOLR.INSTALL + |-> TODO diff --git a/TODO b/TODO index fedfb2a..51a4117 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,4 @@ - Check and add Verbose messages - Modify option -r behaviour - Modifiy SOLR request +- Create Doc in latex diff --git a/main_tools/ThirdPass.sh b/main_tools/ThirdPass.sh index f9a42e4..f9674e1 100755 --- a/main_tools/ThirdPass.sh +++ b/main_tools/ThirdPass.sh @@ -167,6 +167,7 @@ if [ $RERUN -eq 0 ]; then rm -r $RES_DIR > /dev/null 2>&1; fi mkdir -p $RES_DIR print_info "[${BASENAME}] Make directory $RES_DIR" 3 +rm $LOGFILE $ERRORFILE 2>/dev/null #--------------------# # Save configuration # #--------------------# @@ -235,7 +236,7 @@ done ## Check missing seg and log it if [ $CHECK -eq 1 ] then - ls $RES_DIR/*.treil 2>/deV/null | sed -e "s|$RES_DIR\/||g" | sed -e 's/\.treil//' | sort > ${OUTPUT_DIR_BASENAME}/.tmp + ls $RES_DIR/*.treil 2>/dev/null | sed -e "s|$RES_DIR\/||g" | sed -e 's/\.treil//' | sort > ${OUTPUT_DIR_BASENAME}/.tmp todo=$(cat ${PLP_LIST_P1} 2>/dev/null | wc -l) if [ $todo -eq 0 ]; then todo=1;fi notdone=$(($todo - $(cat ${OUTPUT_DIR_BASENAME}/.tmp | wc -l))) diff --git a/tools/scripts/CheckThirdPass.sh b/tools/scripts/CheckThirdPass.sh index b6dc75a..790f953 100644 --- a/tools/scripts/CheckThirdPass.sh +++ b/tools/scripts/CheckThirdPass.sh @@ -22,7 +22,7 @@ function check_third_pass_output_speeral() if [ ! -e "$1" ] || [ -z "$1" ]; then return 1; fi FILENBSEG=$(ls $2/*.seg 2>/dev/null | grep -f "$1" | wc -l) FILENBRES=$(ls $2/*.res 2>/dev/null | grep -f "$1" | wc -l) - FILENBTREIL=$(ls $2/*.treil 2>/deV/null | grep -f "$1" | wc -l) + FILENBTREIL=$(ls $2/*.treil 2>/dev/null | grep -f "$1" | wc -l) FILENB=$(cat "$1" | wc -l) if [ $FILENB -ne $FILENBSEG ] || [ $FILENB -ne $FILENBRES ] || [ $FILENB -ne $FILENBTREIL ] ; then return 1;fi fi -- 1.8.2.3