{# Copyright (C) 2023 Dirk Stöcker This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at https://trac.edgewall.org/wiki/TracLicense. This software consists of voluntary contributions made by many individuals. For the exact contribution history, see the revision history and logs, available at https://trac.edgewall.org/. #} # extends 'admin.html' # block admintitle ${_("Bayes")} # endblock admintitle # block adminpanel

${_("Spam Filtering: Bayes")}

${jmacros.form_token_input()}
${_("Configuration")}

# trans nspam, nham, ratio The bayesian filter requires training before it can effectively differentiate between spam and ham. The training database currently contains ${nspam} spam and ${nham} ham ${ratio} submissions. # endtrans

${_("The bayesian database contains currently %(lines)d lines with trained words (%(spam)s, %(ham)s, %(mixed)s).") % {'lines': dblines, 'spam': dblinesspamonly, 'ham': dblineshamonly, 'mixed': dblinesmixed}}

# if dblinesreducenum < 10000:

# trans Any database lines with less entries is removed when reducing the database. # endtrans

# if nham + nspam == 0:

# trans The minimum number of spam and ham in the training database before the filter starts affecting the karma of submissions. # endtrans

${_("Training")}

# trans While you can train the spam filter from the “Spam Filtering → Monitoring” panel in the web administration interface, you can also manually train the filter by entering samples here, or check what kind of spam probability currently gets assigned to the content. # endtrans


# if content:
# if error: ${_("Error: %(error)s") % {'error': error}} # else: ${_("Score: %(score)s%%") % {'score': score}} # endif
# endif
# endblock adminpanel