🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231633

Re: [40tude Dialog] Scoring

#231633
From: John Hosking
Date: Thu, 19 Mar 2009 10:42
61 lines
2862 bytes
On Wed, 18 Mar 2009 17:50:06 -0700, Gene E. Bloch wrote:

> 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
>>> "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!

Wrong again.

>> 
>> 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 got this right, at least.

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

This thing, this..."logic": I believe I have heard of it. But I am not sure
we have it in my country.

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

> 
> You don't need the first test.

I wasn't paying attention to the strings OP was trying to match, and just
treated them as some generic strings. I was just aiming at the syntax of
the the scoring line.

> 
> 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"

I didn't know that about the uppercasiness, if it's true (I don't find it
in Dialog's Help). Meanwhile, Mike Dee has posted an alternate solution[1]
to the OP's multi-post over in a.c.s.newsreaders, so I'm convinced I've
failed to help out on this question. Maybe next time.

[1] Using =+111 to stop further scoring.
-- 
John
...if the question's easy enough
Technical Details
Message-ID: <72em0mFpmpspU1@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!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <dvf3tyi3i31t$.dlg@SPAMdodgit.com> <72cir4Fpart4U1@mid.individual.net> <11a20xq44me40$.1228be5sobazk.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <72em0mFpmpspU1@mid.individual.net>
Subject: Re: [40tude Dialog] Scoring
Date: Thu, 19 Mar 2009 11:42:57 +0100
From: John Hosking <john-nin@bluemail.ch>
References: <dvf3tyi3i31t$.dlg@SPAMdodgit.com> <72cir4Fpart4U1@mid.individual.net> <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!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 61
Reply-To: john.q.public@bluewin.ch
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net eMhYF0ZXndKpQYNFBGBPjQJdCe5UYgbG2LbXWhDZrQVQf4Bhs9
Cancel-Lock: sha1:9o99EmDdp1pYr6dqI+3V1G6gM6s=
User-Agent: 40tude_Dialog/2.0.15.84