Thread View: news.software.readers
10 messages
10 total messages
Started by Lewis
Sat, 10 Aug 2013 03:08
[SLRN] scoring question
Author: Lewis
Date: Sat, 10 Aug 2013 03:08
Date: Sat, 10 Aug 2013 03:08
12 lines
1752 bytes
1752 bytes
Let's say i want to score on a header like "Organization" which may or may not be present. I want to achieve the following: If the header is present, and contains anything except "Acme, Inc" I want to give it a score of +100. If the header is not present, I don't want to do anything. I'm sure this is stupidly simple, but all my rules are matching rules, and I'm not sure what sort of syntax one might want for no match rule. -- Dinner will be ready when the smoke alarm goes off.
Re: [SLRN] scoring question
Author: Steve Crook
Date: Sat, 10 Aug 2013 08:50
Date: Sat, 10 Aug 2013 08:50
27 lines
1763 bytes
1763 bytes
On Sat, 10 Aug 2013 03:08:45 +0000 (UTC), Lewis wrote in
Message-Id: <slrnl0bblu.e2d.g.kreme@mbp55.local>:
> Let's say i want to score on a header like "Organization" which may or
> may not be present. I want to achieve the following:
>
> If the header is present, and contains anything except "Acme, Inc" I
> want to give it a score of +100. If the header is not present, I don't
> want to do anything.
I would probably break it into 2 parts:
Score +100 for having an Organization header
Score -100 if Organization is "Acme, Inc"
This approach means you can easily score down other Organization headers
you don't like.
Score: 100
Organization: .*
Score:: -100
Organization: Acme, Inc
--
What shall we use
To fill the empty spaces
Where we used to talk?
Re: [SLRN] scoring question
Author: Lewis
Date: Sat, 10 Aug 2013 10:26
Date: Sat, 10 Aug 2013 10:26
29 lines
2339 bytes
2339 bytes
In message <slrnl0bvnj.pdk.steve@snorky.mixmin.net> Steve Crook <steve@mixmin.net> wrote: > On Sat, 10 Aug 2013 03:08:45 +0000 (UTC), Lewis wrote in > Message-Id: <slrnl0bblu.e2d.g.kreme@mbp55.local>: >> Let's say i want to score on a header like "Organization" which may or >> may not be present. I want to achieve the following: >> >> If the header is present, and contains anything except "Acme, Inc" I >> want to give it a score of +100. If the header is not present, I don't >> want to do anything. > I would probably break it into 2 parts: > Score +100 for having an Organization header > Score -100 if Organization is "Acme, Inc" Right, that's what I do now. Does that mean there is no way to say "If contents are not <stuff>" without two rules? > Score: 100 > Organization: .* > Score:: -100 > Organization: Acme, Inc At least I'm not missing anything. -- You are responsible for your Rose
Re: [SLRN] scoring question
Author: Whiskers
Date: Sat, 10 Aug 2013 13:07
Date: Sat, 10 Aug 2013 13:07
40 lines
2396 bytes
2396 bytes
On 2013-08-10, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <slrnl0bvnj.pdk.steve@snorky.mixmin.net> > Steve Crook <steve@mixmin.net> wrote: >> On Sat, 10 Aug 2013 03:08:45 +0000 (UTC), Lewis wrote in >> Message-Id: <slrnl0bblu.e2d.g.kreme@mbp55.local>: > >>> Let's say i want to score on a header like "Organization" which may or >>> may not be present. I want to achieve the following: >>> >>> If the header is present, and contains anything except "Acme, Inc" I >>> want to give it a score of +100. If the header is not present, I don't >>> want to do anything. > >> I would probably break it into 2 parts: >> Score +100 for having an Organization header >> Score -100 if Organization is "Acme, Inc" > > Right, that's what I do now. Does that mean there is no way to say "If > contents are not <stuff>" without two rules? > >> Score: 100 >> Organization: .* > >> Score:: -100 >> Organization: Acme, Inc > > At least I'm not missing anything. Does this work?: #v+ Score: +100 %Any org but Acme Organization: .* ~Organization: Acme, Inc #v- -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [SLRN] scoring question
Author: Steve Crook
Date: Sat, 10 Aug 2013 15:23
Date: Sat, 10 Aug 2013 15:23
23 lines
1788 bytes
1788 bytes
On Sat, 10 Aug 2013 10:26:40 +0000 (UTC), Lewis wrote in
Message-Id: <slrnl0c5b2.fa2.g.kreme@mgb.local>:
>> I would probably break it into 2 parts:
>> Score +100 for having an Organization header
>> Score -100 if Organization is "Acme, Inc"
>
> Right, that's what I do now. Does that mean there is no way to say "If
> contents are not <stuff>" without two rules?
You can combine them into a single rule.
Score: 100
Organization: .*
~Organization: Acme, Inc
I haven't tested this but expect it would work. It basically states:
Organization: anything AND NOT Organization: Acme, Inc
--
What shall we use
To fill the empty spaces
Where we used to talk?
Re: [SLRN] scoring question
Author: Mike Yetto
Date: Sat, 10 Aug 2013 19:11
Date: Sat, 10 Aug 2013 19:11
55 lines
3319 bytes
3319 bytes
In a world where Whiskers <catwheezel@operamail.com> posts to Usenet. > On 2013-08-10, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: >> In message <slrnl0bvnj.pdk.steve@snorky.mixmin.net> >> Steve Crook <steve@mixmin.net> wrote: >>> On Sat, 10 Aug 2013 03:08:45 +0000 (UTC), Lewis wrote in >>> Message-Id: <slrnl0bblu.e2d.g.kreme@mbp55.local>: >> >>>> Let's say i want to score on a header like "Organization" which may or >>>> may not be present. I want to achieve the following: >>>> >>>> If the header is present, and contains anything except "Acme, Inc" I >>>> want to give it a score of +100. If the header is not present, I don't >>>> want to do anything. >> >>> I would probably break it into 2 parts: >>> Score +100 for having an Organization header >>> Score -100 if Organization is "Acme, Inc" >> >> Right, that's what I do now. Does that mean there is no way to say "If >> contents are not <stuff>" without two rules? >> >>> Score: 100 >>> Organization: .* >> >>> Score:: -100 >>> Organization: Acme, Inc >> >> At least I'm not missing anything. > Does this work?: > #v+ > Score: +100 %Any org but Acme > Organization: .* > ~Organization: Acme, Inc > #v- This would also score +100 if the Organization: header is empty. If there must be a value then use the following where at least one character is needed for the Organization: value. #v+ Score: +100 %Any org but Acme Organization: . ~Organization: Acme, Inc #v- Mike "dot plus would also work" Yetto -- "The solemn scepticism of science has replaced the sneering doubts of witty philosophers. The more positive knowledge we gain, the more we incline to question all that has been received without absolute proof." - Oliver Wendell Holmes
Re: [SLRN] scoring question
Author: Steve Crook
Date: Sat, 10 Aug 2013 19:23
Date: Sat, 10 Aug 2013 19:23
31 lines
2163 bytes
2163 bytes
On Sat, 10 Aug 2013 15:11:16 -0400, Mike Yetto wrote in Message-Id: <slrn20130810150622.214.twooffive@may.eternal-september.org>: >> #v+ >> Score: +100 %Any org but Acme >> Organization: .* >> ~Organization: Acme, Inc >> #v- > > This would also score +100 if the Organization: header is empty. > If there must be a value then use the following where at least > one character is needed for the Organization: value. > > #v+ > Score: +100 %Any org but Acme > Organization: . > ~Organization: Acme, Inc > #v- > > Mike "dot plus would also work" Yetto I went with .* in my suggestion because the OP stated "If the Organization header is present". Your '.' is a better solution to the question "If the Organization header is populated". In practice, I'm not sure if it actually makes any difference. I don't recall seeing an unpopulated Organization header. :) -- What shall we use To fill the empty spaces Where we used to talk?
Re: [SLRN] scoring question
Author: Mike Yetto
Date: Sat, 10 Aug 2013 19:38
Date: Sat, 10 Aug 2013 19:38
50 lines
3361 bytes
3361 bytes
In a world where Lewis <g.kreme@gmail.com.dontsendmecopies>
posts to Usenet.
> In message <slrnl0bvnj.pdk.steve@snorky.mixmin.net>
> Steve Crook <steve@mixmin.net> wrote:
>> On Sat, 10 Aug 2013 03:08:45 +0000 (UTC), Lewis wrote in
>> Message-Id: <slrnl0bblu.e2d.g.kreme@mbp55.local>:
>>> Let's say i want to score on a header like "Organization" which may or
>>> may not be present. I want to achieve the following:
>>>
>>> If the header is present, and contains anything except "Acme, Inc" I
>>> want to give it a score of +100. If the header is not present, I don't
>>> want to do anything.
>> I would probably break it into 2 parts:
>> Score +100 for having an Organization header
>> Score -100 if Organization is "Acme, Inc"
> Right, that's what I do now. Does that mean there is no way to say "If
> contents are not <stuff>" without two rules?
>> Score: 100
>> Organization: .*
>> Score:: -100
>> Organization: Acme, Inc
> At least I'm not missing anything.
You will need two rules, but the two you have will add 100 to any
Organization: (even if it is blank) and the second will leave
remove that 100 from Acme.
One rule should give +100 to all except Acme and the other should
take 100 from Acme.
#v+
Score: +100 %Any org but Acme
Organization: .
~Organization: Acme, Inc
Score: -100 %downscore Acme
Organization: Acme, Inc
#v-
Mike "the single dot means it can't be blank" Yetto
--
βThe wise skeptic does not teach doubt but how to look for the
permanent in the mutable and fleeting.β
- Ralph Waldo Emerson
Re: [SLRN] scoring question
Author: Mike Yetto
Date: Sat, 10 Aug 2013 19:41
Date: Sat, 10 Aug 2013 19:41
38 lines
2919 bytes
2919 bytes
In a world where Steve Crook <steve@mixmin.net> posts to Usenet. > On Sat, 10 Aug 2013 15:11:16 -0400, Mike Yetto wrote in > Message-Id: <slrn20130810150622.214.twooffive@may.eternal-september.org>: >>> #v+ >>> Score: +100 %Any org but Acme >>> Organization: .* >>> ~Organization: Acme, Inc >>> #v- >> >> This would also score +100 if the Organization: header is empty. >> If there must be a value then use the following where at least >> one character is needed for the Organization: value. >> >> #v+ >> Score: +100 %Any org but Acme >> Organization: . >> ~Organization: Acme, Inc >> #v- >> >> Mike "dot plus would also work" Yetto > I went with .* in my suggestion because the OP stated "If the > Organization header is present". Your '.' is a better solution to the > question "If the Organization header is populated". In practice, I'm > not sure if it actually makes any difference. I don't recall seeing an > unpopulated Organization header. :) And I'm not sure if scoring even knows about null or undefined headers. Mike "but discussing the lack of difference is what we do" Yetto -- "Question with boldness even the existence of God; because, if there be one, he must more approve of the homage of reason than that of blindfolded fear." - Thomas Jefferson
Re: [SLRN] scoring question
Author: Lewis
Date: Sun, 11 Aug 2013 03:31
Date: Sun, 11 Aug 2013 03:31
13 lines
1880 bytes
1880 bytes
In message <slrnl0ceon.1mn.catwheezel@ID-107770.user.individual.net> Whiskers <catwheezel@operamail.com> wrote: > #v+ > Score: +100 %Any org but Acme > Organization: .* > ~Organization: Acme, Inc > #v- Ooo, I'll try that. I've never seen that syntax. -- "These are my rules, I make 'em up." ~George Carlin
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