NAME

build_probabilities.pl - Turn two token files into a probability file


DESCRIPTION

The following options are supported

Bad (SPAM) Token File (-b or --bad)

Specify the token file containing the bad tokens. In other words, the tokens from the SPAM messages.

example: perl -w build_probabilities.pl -p prob.dat -b bad.dat

Good Token File (-g or --good)

Specify the token file containing the good tokens. In other words, the tokens from the non-SPAM messages.

example: perl -w build_probabilities.pl -p prob.dat -b bad.dat -g good.dat

Help (-h or -?)

Print useage instructions

example: perl -w build_probabilities.pl -h

Log File Name (-l or --log)

If a logfile is specified, then this is used as the logfile name.

Log Configuration Files (--log_cfg)

You can create a configuration file for your logger and then configure your log object by simply telling it to read the specified configuration file. To create an initial configuration file, write a perl script that creates a logger, configures the logger, and then use the write_to_file('log_cfg.dat') method.

This provides complete control over how the logger is configured. You can set screen and file output levels, for example.

example: perl -w build_probabilities.pl -p prob.dat -b bad.dat -g good.dat --log_cfg ~andy/logs/default_log.dat

Log File Directory (--log_dir)

This allows you to specify which directory contains the log

example: perl -w build_probabilities.pl -p prob.dat -b bad.dat -g good.dat --log_dir ~andy/logs

Token file (-p or --prob)

This provides a method of specifying the name of the output probability token data file.

example: perl -w build_probabilities.pl -p prob.dat -b bad.dat -g good.dat


COPYRIGHT

Copyright 1998-2002, Andrew Pitonyak (perlboy@pitonyak.org)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Modification History

September 10, 2002

Version 1.00 First release