Changeset 90494


Ignore:
Timestamp:
Mar 7, 2012, 3:40:01 PM (6 years ago)
Author:
hum@…
Message:

extractopinion: update to 1.2; fix dependencies; add patch-lib_tsv.pm.diff to use juman6 and knp3 instead of juman and knp.

Location:
trunk/dports/textproc/extractopinion
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/extractopinion/Portfile

    r85145 r90494  
    55
    66name                extractopinion
    7 version             1.1
     7version             1.2
    88categories          textproc japanese
    99platforms           darwin
     
    1616
    1717master_sites        http://alaginrc.nict.go.jp/opinion/src/
    18 
    19 checksums           rmd160  45a35364e5354ee115c5d8a1481809d4cd408390 \
    20                     sha256  e940860a719be12c64a0cd573bf8ef1922210690df33c7ca5695097e2f5510fc
     18checksums           rmd160  abbfb97605e4316349f279332d3785af3c39d9a0 \
     19                    sha256  09c0a2ca339bc5b50afccecbf0b130aec9d15445155ee36fa6605a02952db3cb
    2120
    2221patchfiles          patch-extract.sh.diff \
    2322                    patch-makemdl.sh.diff \
    24                     patch-crftrain.sh.diff
     23                    patch-crftrain.sh.diff \
     24                    patch-lib_tsv.pm.diff
    2525
    2626depends_lib         port:crfpp \
    27                     port:nkf \
     27                    port:libiconv \
    2828                    port:gawk \
    2929                    port:p5-text-csv_xs \
    30                     port:juman \
    31                     port:knp
     30                    port:juman6 \
     31                    port:knp3
    3232
    3333use_configure       no
  • trunk/dports/textproc/extractopinion/files/patch-crftrain.sh.diff

    r85145 r90494  
    1 --- src/crftrain.sh.orig        2011-09-21 11:51:17.000000000 +0900
    2 +++ src/crftrain.sh     2011-10-07 22:00:32.000000000 +0900
    3 @@ -16,6 +16,6 @@
     1--- src/crftrain.sh.orig        2012-03-01 09:38:37.000000000 +0900
     2+++ src/crftrain.sh     2012-03-07 01:36:37.000000000 +0900
     3@@ -21,6 +21,6 @@
    44 tagfile=$tmp/crftrain.$$.tag
    55 
    66 $dir/tsv2tag.awk -f $exlib/utility.awk -v SCRIPT=$dir/tsv2tag.awk > $tagfile
    7 -$crf_learn -c $param_c $dir/template $tagfile $mdlfile
    8 +$crf_learn -c $param_c $dir/../xpr/template $tagfile $mdlfile
     7-$crf_learn -c $param_c -p $param_p $dir/template $tagfile $mdlfile
     8+$crf_learn -c $param_c -p $param_p $dir/../xpr/template $tagfile $mdlfile
    99 
    1010 rm -f $tagfile
  • trunk/dports/textproc/extractopinion/files/patch-extract.sh.diff

    r85145 r90494  
    1 --- extract.sh.orig     2011-09-21 11:51:06.000000000 +0900
    2 +++ extract.sh  2011-10-07 23:24:41.000000000 +0900
    3 @@ -1,11 +1,5 @@
    4  #!/bin/sh
    5  
    6 -if [ $# -lt 1 -o  $# -gt 3  ]
    7 -then
    8 -    echo "Usage $0 file_name [topic_str]"
    9 -    exit -1;
    10 -fi
    11 -
    12  dir=`cd $(dirname $0) && pwd`
    13  . $dir/conf.sh
    14  
    15 @@ -13,10 +7,31 @@
     1--- extract.sh.orig     2012-03-01 09:38:37.000000000 +0900
     2+++ extract.sh  2012-03-07 01:30:02.000000000 +0900
     3@@ -20,13 +20,35 @@
    164 export EXOPLIB=$dir/lib
    175 export EXOPDIC=$dir/dic
     
    4028 tmp=${TMPDIR:-.}
    4129 tsvfile=$tmp/extract.$$.tsv
     30+euc_file=$tmp/extract.$$.euc
    4231 
    43 -perl -I $EXOPLIB $EXOPLIB/in2tsv.pl $1 $2 > $tsvfile
    44 +perl -I $EXOPLIB $EXOPLIB/in2tsv.pl $file_name $topic_str > $tsvfile
     32 #nkf -e -W --fb-skip < $1 > $1.euc
     33 # $B;XDjJ8;z%3!<%I$O4D6-$K$h$C$FI=5-$,0c$&$?$a(Biconv -l$B$G3NG'(B
     34-iconv -c -f UTF-8 -t EUC-JP < $1 > $1.euc
     35-perl -I $EXOPLIB $EXOPLIB/in2tsv.pl $1.euc $2 > $tsvfile
     36+iconv -c -f UTF-8 -t EUC-JP < $file_name > $euc_file
     37+perl -I $EXOPLIB $EXOPLIB/in2tsv.pl $euc_file $topic_str > $tsvfile
    4538 $dir/_extract.sh $model $tsvfile | perl -I $EXOPLIB $EXOPLIB/tsv2out.pl
    4639 
  • trunk/dports/textproc/extractopinion/files/patch-makemdl.sh.diff

    r85145 r90494  
    1 --- makemdl.sh.orig     2011-10-03 22:18:53.000000000 +0900
    2 +++ makemdl.sh  2011-10-07 23:24:50.000000000 +0900
    3 @@ -9,13 +9,42 @@
     1--- makemdl.sh.orig     2012-03-01 09:38:37.000000000 +0900
     2+++ makemdl.sh  2012-03-07 01:36:42.000000000 +0900
     3@@ -6,19 +6,48 @@
     4 
     5 export LANG=C
     6 
     7 dir=`cd $(dirname $0) && pwd`
     8 
     9 . $dir/conf.sh
    410 
    511 export EXOPLIB=$dir/lib
Note: See TracChangeset for help on using the changeset viewer.