[Spambayes] Unwanted stock solicitations

Skip Montanaro skip at pobox.com
Mon Oct 23 16:43:27 CEST 2006


    Kasper> Third: You seem to have the scale parameter format wrong, that's
    Kasper> why the output is so bad.

    Skip> The -2 I used was suggested by the ocrad author.  I've tried a few
    Skip> other scales.  It's not obvious that one scale is much better than
    Skip> another. Still, I should make this a user-settable option.

    Kasper> Here are two test runs. First one with incorrect parameter
    Kasper> format as in your example. Second with correct scaling
    Kasper> parameter:

    ...

    Skip> Whoops!  Thanks, I'll fix that pronto.

Belay that.  Here's what's in the SpamBayes source:

    scale = options["Tokenizer", "ocrad_scale"] or 1
    charset = options["Tokenizer", "ocrad_charset"]
    ...
    ocr = os.popen("ocrad -s %s -c %s -x %s -f %s 2>/dev/null" %
                   (scale, charset, orf, pnmfile))

So I already allow the user to adjust the scaling factor and properly use
the -s flag.  I think the incorrect usage was confined to my postings.

Skip


More information about the SpamBayes mailing list