Article View: news.software.readers
Article #39362Re: [slrn] Double colon usage, matching whole words in scorefile
From: David Goh
Date: Fri, 06 Mar 1998 00:00
Date: Fri, 06 Mar 1998 00:00
111 lines
4105 bytes
4105 bytes
In news.software.readers, on 5 Mar 1998 18:00:13 GMT
Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> wrote:
>In article <6dll9l$bbv@padre.unico.com.au>, David Goh wrote:
>>*ponder* You sure you're interpreting the meaning of AND and OR
>>correctly?
>>Straight out of my scorefile...:
>>[aus.tv]
>>Score:: 100
>> Subject: Buffy
>> Subject: Xena
>> Subject: southpark
>>Which means, posts with (Buffy OR Xena OR southpark) in the subject
>>get a score of 100...
>
>I do in fact realize what AND and OR are...I've taken several logic
>courses. :)
*ponder* Good good. I'm *still* unsure as to whether you're saying
what I think you're saying. See below for a further description of how
I interpret a score entry...
>However, I had problems when I had:
>% But I *do* wanna hear about Dean, Litespeed, AMP and titanium.
>Score:: 1000
> Subject: titanium
> Subject: Dean
> Subject: Litespeed
> Subject: \c\<AMP\>
> Subject: Alberta
Mmm... this (at least for me, under 0.9.4.3), would work, and score any
of the listed subjects with 1000...
>And when I made the Score line : Score::, it worked. I'm using
>0.9.4.6.
Wha? You saying that you changed it *to* Score:: and it worked, or
*from* Score:: and it worked?
I'd expect the entry as you wrote it above (with Score::) to
work as you desired... using the conditionals with ORs in between.
>I thought this behavior was weird...that's why I posted.
>When I was looking at what slrn did when it made scorefile entries, it
>only used a ':', not a '::'...that's why I tried it.
It uses a single :, because when it goes to generate an entry, it wants
to have *all* the conditions fulfilled before it will apply that score.
If you had written:
Score: 1000
Subject: titanium
Subject: Dean
Subject: Litespeed
Subject: \c\<AMP\>
Subject: Alberta
Then you'd only get the score being applied if *all* the listed keywords
were in the Subject line...
>I find that this works...I know it's odd. :)
That's what I find weird... why do you think it's odd? *ponder*
Let me explain how my own head interprets score entries...
A score entry is essentially an IF .. THEN... statement.
vv-- note double colon
Score:: Scorevalue
Condition1
Condition2
Condition3
Translates in my head to:
IF Condition1 OR Condition2 OR Condition3 THEN
Score = Scorevalue
ENDIF
v-- note single colon
Score: Scorevalue
Condition1
Condition2
Condition3
Translates in my head to:
IF Condition1 AND Condition2 AND Condition3 THEN
Score = Scorevalue
ENDIF
Anyway. :) The only reason I can think of for viewing *that* as a
'weird' thing, is that you're somehow using a different interpretation
of the syntax of a score entry...
Which is entirely possible. :) In any case, could you try to explain to
me why you think the above is weird? I'm just curious, at this point,
since I don't find it weird at all.
Later,
David
--
| david@unico.com.au (David Goh, Unico Computer Systems, +61-3-9866-5688)
If you're not part of the solution, you're part of the precipitate.
Technical Details
Message-ID:
<6dnmbf$g8e@padre.unico.com.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn6fr49j.phs.jan@obed-le0.cs.ualberta.ca> <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi> <slrn6fs8uf.hk8.jan@obed-le0.cs.ualberta.ca> <6dll9l$bbv@padre.unico.com.au> <slrn6ftq1d.njs.jan@obed-le0.cs.ualberta.ca>Show Full Headers
Complete Article Headers
Message-ID: <6dnmbf$g8e@padre.unico.com.au> Subject: Re: [slrn] Double colon usage, matching whole words in scorefile Date: Fri, 06 Mar 1998 00:00:00 +0000 From: david@unico.com.au (David Goh) References: <slrn6fr49j.phs.jan@obed-le0.cs.ualberta.ca> <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi> <slrn6fs8uf.hk8.jan@obed-le0.cs.ualberta.ca> <6dll9l$bbv@padre.unico.com.au> <slrn6ftq1d.njs.jan@obed-le0.cs.ualberta.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 331286847 X-Newsgroup: news.software.readers Reply-To: david@unico.com.au X-Silly-Line: Everyone talks about apathy, but no one does anything about it. Organization: UNICO Computer Systems, Melbourne, Australia Newsgroups: news.software.readers X-Religion: linux slrn mutt vim