Difference between revisions of "User:Francis Tyers/TLH"

From Apertium
Jump to navigation Jump to search
Line 7: Line 7:


==Tarea 2==
==Tarea 2==
<code>
<pre>
$ for i in `seq 1 9`; do
$ for i in `seq 1 9`; do
cat LexEsp-[1-$i].cooked > LexExp-ejecucion$i.cooked;
cat LexEsp-[1-$i].cooked > LexExp-ejecucion$i.cooked;
Line 15: Line 15:
evaluate.pl LexEsp-0.cooked LexEsp-0.$i.t3 >> output ;
evaluate.pl LexEsp-0.cooked LexEsp-0.$i.t3 >> output ;
done
done
</code>
</pre>

Revision as of 12:28, 23 December 2007

Tarea 1

$ evaluate.pl LexEsp-0.cooked LexEsp-0.t3 
418 sentences
         LexEsp-0.t3     9470      397  95.976%

Tarea 2

$ for i in `seq 1 9`; do 
    cat LexEsp-[1-$i].cooked > LexExp-ejecucion$i.cooked; 
    cooked2lex.pl < LexExp-ejecucion$i.cooked > train.$i.lex; 
    cooked2ngram.pl < LexExp-ejecucion$i.cooked > train.$i.ngrams; 
    t3 train.$i.ngrams train.$i.lex < LexEsp-0.raw > LexEsp-0.$i.t3; 
    evaluate.pl LexEsp-0.cooked LexEsp-0.$i.t3 >> output ; 
done