Hi Anagha,

I wrote a driver script to run some experiments with the name
discrimination data. I think it's an ok example of how to set up a script
that will run many different permutations of  discriminate.pl. You can
start a script like this and just let it go and go and go... :)

This run runs over 5 different sets of data, and varies the test scope
over 3 values, the train scope over 2 values, and turns svd on and off.
That's 5*3*2*2 = 60 different experiments!

======================================================================

#!/bin/csh

#######################################################################
# This script runs a series of name discrimination experiments
#######################################################################

if ($#argv != 0) then
   echo "USAGE ERROR: run-name has no command line arguments"
   exit 1
endif

############################################
# these are the experimental parameters
############################################

set directory = /home/cs/tpederse/CICLING-2005

set data = $directory/DATA
set reports = $directory/REPORTS

set stop = $directory/stoplist.1
set token = $directory/token.regex
set target = $directory/target.regex

set feature = bi
set window = 2
set remove = 2

set stat = ll
set statscore = 3.841

set clusters = 2

# a directory where the output reports are sent for easy viewing

if (-e $reports) then
    echo "$reports already exists!"
    exit 1
endif

mkdir $reports

############################################

foreach id (Tajik-Ekeus.50 Beckham-Ronaldo.50 Egyptian-Jordan.50 Peres-Milosvic.50 
Japan-France.50)

    foreach scopetest (2 5 10)

        foreach scopetrain (5 20)

            foreach svd ("--svd" "")

            # prefix is a unique identifier for this experiment

            if ($svd == "--svd") then
                set prefix = $id.$scopetest.$scopetrain.svd
            else
                set prefix = $id.$scopetest.$scopetrain
            endif

            if (-e $prefix) then
                echo "$prefix already exists!"
                exit 1
            endif

            mkdir $prefix

            cd $prefix

            discriminate.pl $data/$id.txt --clusters $clusters --eval \
            --token $token --stop $stop --target $target\
            --feature $feature --remove $remove --window 2 \
            --stat $stat --stat_score $statscore \
            --scope_test $scopetest --scope_train $scopetrain \
            $svd \
            --prefix $prefix \
            --verbose --showargs > $reports/$prefix.summary.output

            cd ..

            end # svd
        end     # scopetrain
    end         # scopetest
end             # id



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
senseclusters-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/senseclusters-users

Reply via email to