You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2007/02/07 20:12:57 UTC

[Spamassassin Wiki] Update of "RunningPerceptron" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/RunningPerceptron

The comment on the change is:
fix script snippet

------------------------------------------------------------------------------
  Generating scores is a two step process:  model validation and score generation.  To prepare your environment for running perceptron, execute the following after setting CORPUS:
  
  {{{
-   mkdir masses/ORIG -p
+   cd masses
+   rm -rf ORIG NSBASE SPBASE ham-validate.log spam-validate.log ham.log spam.log
+   mkdir ORIG
-   for CLASS in "ham spam"; do
+   for CLASS in ham spam ; do
-     cat $CORPUS/submit/$CLASS*.log > masses/ORIG/$CLASS.log
+     cat $CORPUS/submit/$CLASS*.log > ORIG/$CLASS.log
-     for I in $(seq 0 3); do
+     for I in 0 1 2 3 ; do
-       ln -s masses/ORIG/$CLASS.log masses/ORIG/$CLASS-set$I.log
+       ln -s $CLASS.log ORIG/$CLASS-set$I.log
      done
    done
  }}}