From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/8827 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: adaptive word score, and numbers Date: 18 Nov 1996 18:56:29 +0100 Sender: larsi@proletcult.ifi.uio.no Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035148941 14629 80.91.224.250 (20 Oct 2002 21:22:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:22:21 +0000 (UTC) Return-Path: Original-Received: (qmail 5278 invoked from smtpd); 18 Nov 1996 18:19:36 -0000 Original-Received: from ifi.uio.no (0@129.240.64.2) by deanna.miranova.com with SMTP; 18 Nov 1996 18:19:32 -0000 Original-Received: from proletcult.ifi.uio.no (root@ppp13.larris.ifi.uio.no [129.240.68.113]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Mon, 18 Nov 1996 18:54:29 +0100 Original-Received: (from larsi@localhost) by proletcult.ifi.uio.no (8.8.2/8.8.2) id SAA00511; Mon, 18 Nov 1996 18:56:31 +0100 Original-To: ding@ifi.uio.no In-Reply-To: Steinar Bang's message of 18 Nov 1996 13:00:54 +0100 Original-Lines: 29 X-Mailer: Red Gnus v0.64/Emacs 19.34 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > A common factor for these groups, are subjects, with letter > combinations, followed by numbers. And these letter combinations are > relevant for what I want the score to adapt to. Eg. in rec.av.mil, I > would like it to increase score for F-104 (actually also for CF-104, > F104, and other interesting combinations), while I would like to sink > score for anything with "TWA 800" in subject. In rec.moto I would > like to increase score on "VFR750F" (Yeah! Go little Viffer! Go! Go! > GO! :-), and sink in on everything with HD in it (though that's not > really relevant...) Well, I think this is just what adaptive word scoring will get you. If you don't read articles with "TWA 800" in the subjects, the words "TWA" and "800" will get their scores lowered. If the words you want to score on contain "-", you should modify the syntax entry for that character to be word-consituent: (setq gnus-adaptive-word-syntax-table (copy-syntax-table (standard-syntax-table))) (modify-syntax-entry ?- "w" gnus-adaptive-word-syntax-table) (By the way, by default, numbers are considered to be white space when doing word scoring.) -- (domestic pets only, the antidote for overdose, milk.) larsi@ifi.uio.no * Lars Ingebrigtsen