From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9073 Path: main.gmane.org!not-for-mail From: Holger Franz Newsgroups: gmane.emacs.gnus.general Subject: Re: adaptive word scoring Date: 03 Dec 1996 14:51:58 +0100 Sender: hfranz@ac3a50.physik.rwth-aachen.de Message-ID: References: <199611290525.VAA00464@kim.teleport.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.92) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035149153 16330 80.91.224.250 (20 Oct 2002 21:25:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:25:53 +0000 (UTC) Return-Path: Original-Received: (qmail 30465 invoked from smtpd); 3 Dec 1996 14:46:33 -0000 Original-Received: from ifi.uio.no (0@129.240.64.2) by deanna.miranova.com with SMTP; 3 Dec 1996 14:46:32 -0000 Original-Received: from ac3a50.physik.rwth-aachen.de (hfranz@acp3a0.physik.rwth-aachen.de [137.226.30.150]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 3 Dec 1996 14:52:14 +0100 Original-Received: by ac3a50.physik.rwth-aachen.de; (8.6.12/1.1.8.2/13Mar96-1030AM) id OAA00442; Tue, 3 Dec 1996 14:52:01 +0100 Original-To: ding@ifi.uio.no In-Reply-To: Robert Bihlmeyer's message of Mon, 2 Dec 1996 16:08:05 +0100 Original-Lines: 63 X-Mailer: Red Gnus v0.55/XEmacs 19.14 Xref: main.gmane.org gmane.emacs.gnus.general:9073 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9073 Just to toss in my two cents: How about adding the exponent feature from the procmail scoring mechanism? It provides a flexible method to keep scores from frequent matches low. >>From `man procmailsc`: ---8<--- Weighted regular expression conditions The first time the regular expression is found, it will add w to the score. The second time it is found, w*x will be added. The third time it is found, w*x*x will be added. The fourth time w*x*x*x will be added. And so forth. This can be described by the following concise formula: n n k-1 x - 1 w * Sum x = w * ------- k=1 x - 1 It represents the total added score for this condition if n matches are found. Note that the following case distinctions can be made: x=0 Only the first match will contribute w to the score. Any subsequent matches are ignored. x=1 Every match will contribute the same w to the score. The score grows linearly with the number of matches found. 0 Caution: feeding Gnus to your XEmacs will make it fat.