Loading incoming/yasuoka/bin/makecorpus.sh +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ elif [ $D/hakubun/$B.utf-8 -nt $G ] then ( sed -e 's/[/\[/g' -e 's/]/\]/g' -e 's/\[[^]]*\]//g' -e 's/(/(/g' -e 's/)/)/g' -e 's/([^)]*)//g' $D/hakubun/$B.utf-8 | tr '()\133\135' '\012\012\012\012' ; echo '' ) | tr -s '\012' '\012' > $G.a~ sed -e '/ /{' -e :loop -e N -e 's/ .*\n//' -e 's/EOS//' -e '/ /bloop' -e '}' $G | tr -s '\012' '\012' > $G.b~ diff $G.a~ $G.b~ X=`diff $G.a~ $G.b~ | sed -n -e 's/^\([0-9]*\).*$/\1/p' -e 1q` if [ 0$X -gt 0 ] then if [ $X -eq 1 ] Loading Loading
incoming/yasuoka/bin/makecorpus.sh +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ elif [ $D/hakubun/$B.utf-8 -nt $G ] then ( sed -e 's/[/\[/g' -e 's/]/\]/g' -e 's/\[[^]]*\]//g' -e 's/(/(/g' -e 's/)/)/g' -e 's/([^)]*)//g' $D/hakubun/$B.utf-8 | tr '()\133\135' '\012\012\012\012' ; echo '' ) | tr -s '\012' '\012' > $G.a~ sed -e '/ /{' -e :loop -e N -e 's/ .*\n//' -e 's/EOS//' -e '/ /bloop' -e '}' $G | tr -s '\012' '\012' > $G.b~ diff $G.a~ $G.b~ X=`diff $G.a~ $G.b~ | sed -n -e 's/^\([0-9]*\).*$/\1/p' -e 1q` if [ 0$X -gt 0 ] then if [ $X -eq 1 ] Loading