🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231674

Re: [40tude Dialog] Scoring

#231674
From: Gene E. Bloch
Date: Fri, 20 Mar 2009 23:10
91 lines
4602 bytes
On Thu, 19 Mar 2009 11:42:57 +0100, John Hosking wrote:

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

If you're using "experience" in a sentence that implicitly refers to me and
Dialog, better think again :-)

I used be pretty good with regular expressions, but I got old and retired,
and hardly ever do that any more. In Dialog, I just make simple expressions
to mark a small but slowly growing number of posters as read, so I haven't
bothered to learn the new (to me) syntax.
 
>> 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.

I was raised in a log(ic) cabin :-)
 
But I was more kidding than anything, truth be told, when I spoke of logic.
I sort of meant it as a reminder to the OP to step back a bit and see the
forest and the trees (I guess that also applies to you this time, given
your remark below!).

>> *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.

I've never made a slip like that. Yeah, sure...
 
>> 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.

Oh. It looks like I have to RTFM - I seem not to have noticed that '='
stops scoring (or did you just mean use absolutes on each match to prevent
accumulating scores on every match?).

I also haven't done any research to verify or refute my vague memory about
case sensitivity. Maybe next week :-)

There's a lot to be said about Mike Dee's idea in the other post in this
little subthresd. Like just address the problem in the simplest terms...

Which I failed to do in this lengthy reply!

-- 
Gene E. Bloch      letters0x40blochg0x2Ecom
Technical Details
Message-ID: <cd134rphr2nc$.14nrrp2k0cusy$.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!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.motzarella.org!motzarella.org!reader.motzarella.org!not-for-mail
References: <dvf3tyi3i31t$.dlg@SPAMdodgit.com> <72cir4Fpart4U1@mid.individual.net> <11a20xq44me40$.1228be5sobazk.dlg@40tude.net> <72em0mFpmpspU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <cd134rphr2nc$.14nrrp2k0cusy$.dlg@40tude.net>
Subject: Re: [40tude Dialog] Scoring
Date: Fri, 20 Mar 2009 16:10:10 -0700
From: "Gene E. Bloch" <not-me@other.invalid>
References: <dvf3tyi3i31t$.dlg@SPAMdodgit.com> <72cir4Fpart4U1@mid.individual.net> <11a20xq44me40$.1228be5sobazk.dlg@40tude.net> <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!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.motzarella.org!motzarella.org!reader.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 91
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX18X/qjDCoCOarMN/iyHUcJBVGtyjUS3yKvJ2ZAq4iVuF3yYXzmdpuVEKTWFIF+2KIS6xfmcDUardIaVCDgq4N73GgfYd9V5anuuQw+3LhCN2CN723fumbW6sl9V2/SXRvs=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 20 Mar 2009 23:10:11 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1+qSb6GvDyUSfHVFID1jpDmj0xHVSv63XM=
Cancel-Lock: sha1:dbSpxkYLFxgJnqaVZkpxMp9XmXg=
User-Agent: 40tude_Dialog/2.0.15.84