🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231619

Re: [40tude Dialog] Scoring

#231619
From: Gene E. Bloch
Date: Thu, 19 Mar 2009 00:50
47 lines
2712 bytes
On Wed, 18 Mar 2009 16:33:26 +0100, John Hosking wrote:

> On Wed, 18 Mar 2009 14:57:57 GMT, Kester wrote:
> 
>> Let's say I was to score higher articles if they have the word "Req" or
> 
> Let's say "you *were* to score... Or you were to want to score.
> 
>> "Request" in the subject.
>> 
>> If I simply put 
>> +111 Subject "Request"
>> +111 Subject "Req"
>> 
>> The article gets scored twice and the final score is 222.  What am I doing
>> wrong.
> 
> Ooh! ohh! Pick me, pick me! I know this one!
> 
> I think so, anyway, even though I don't do such scoring. I've had a look in
> Dialog samples and I think you want:
> 
> +111 Subject "Request" "Req"
> 
> Try it and see. Also watch for more experience-laden answers.

I hardly ever score in Dialog, but I've used logic in my life.

The first line says add 111 to the score of any article with Request in the
subject.

The first line says add 111 to the score of any article with Req in the
subject.

*Every* article that passes the first *also* has Req in the subject, so it
passes both tests.

So 111 is added twice.

You don't need the first test.

IIRC, when Dialog sees an uppercase letter, it will make the test case
sensitive. If I'm right, and if you don't want that, use just the line
+111 Subject "req"

-- 
Gene E. Bloch      letters0x40blochg0x2Ecom
Technical Details
Message-ID: <11a20xq44me40$.1228be5sobazk.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!reader.motzarella.org!not-for-mail
References: <dvf3tyi3i31t$.dlg@SPAMdodgit.com> <72cir4Fpart4U1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <11a20xq44me40$.1228be5sobazk.dlg@40tude.net>
Subject: Re: [40tude Dialog] Scoring
Date: Wed, 18 Mar 2009 17:50:06 -0700
From: "Gene E. Bloch" <not-me@other.invalid>
References: <dvf3tyi3i31t$.dlg@SPAMdodgit.com> <72cir4Fpart4U1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!reader.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 47
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX1/X3hFntsVV3W9IoTGoDhRSaOfGXmRaNirmRlgKVcRTllciyQEqw5MjmN9JRBeaqpyCgGwr9YJ9zfMQcAKoymcllsXcH0ed4bTXzLBWORobZY4+V4T1uqnR1KP4chdcEzk=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Thu, 19 Mar 2009 00:50:07 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX18ZXrmYS2LopLuyLQEhlqhyVDoq/RyRP5w=
Cancel-Lock: sha1:GfxQ5pZgY9HJzEjNCphPrCzkyzw=
User-Agent: 40tude_Dialog/2.0.15.84
X-Original-Bytes: 2482