🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Kester Wed, 18 Mar 2009 14:57
[40tude Dialog]
#231614
Author: Kester
Date: Wed, 18 Mar 2009 14:57
9 lines
1310 bytes
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.
Re: [40tude Dialog] Scoring (was: [40tude Dialog])
#231617
Author: John Hosking
Date: Wed, 18 Mar 2009 15:33
27 lines
1694 bytes
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.

-- 
John
How can I do much scoring if I'm on Usenet all the time?
Re: [40tude Dialog] Scoring
#231619
Author: 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
Re: [40tude Dialog] Scoring
#231633
Author: 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
Re: [40tude Dialog] Scoring
#231658
Author: Mike Dee
Date: Fri, 20 Mar 2009 00:06
15 lines
1909 bytes
John Hosking <john-nin@bluemail.ch> wrote:

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

And then, I only gave him what I thought would work with what he was 
asking. Not what I thought he should be doing ;-)

-- 
dee
Re: [40tude Dialog] Scoring
#231674
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads