Article View: news.software.readers
Article #255406Re: [SLRN] scoring question
From: 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
Technical Details
Message-ID:
<slrn20130810153257.209.twooffive@may.eternal-september.org>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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!g3no20873518wic.0!news-out.google.com!cc8ni23910wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnl0bblu.e2d.g.kreme@mbp55.local> <slrnl0bvnj.pdk.steve@snorky.mixmin.net> <slrnl0c5b2.fa2.g.kreme@mgb.local>Show Full Headers
Complete Article Headers
Message-ID: <slrn20130810153257.209.twooffive@may.eternal-september.org> Subject: Re: [SLRN] scoring question Date: Sat, 10 Aug 2013 15:38:11 -0400 From: Mike Yetto <myetto1@nycap.invalid> References: <slrnl0bblu.e2d.g.kreme@mbp55.local> <slrnl0bvnj.pdk.steve@snorky.mixmin.net> <slrnl0c5b2.fa2.g.kreme@mgb.local> 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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!g3no20873518wic.0!news-out.google.com!cc8ni23910wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mail X-Received: by 10.180.212.17 with SMTP id ng17mr3069771wic.2.1376164083975; Newsgroups: news.software.readers Organization: slrn Mafia / Xnews Tong (emeritus) Lines: 50 Mime-Version: 1.0 Injection-Info: may.eternal-september.org; posting-host="8f28f292bb3c17954cd3e2591a175da1"; logging-data="31858"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/6iU5L2ybZiKLoWpyxJlZk+KF/5Ae0k0=" User-Agent: slrn/pre1.0.2-9 (Linux) X-No-Bananas: Yes (except Ray) Cancel-Lock: sha1:fQk57jC+n9iC3wM/2yDM2JBpnZY= sha1:EHgKhJZRtkkTzHqajhIKp0HD36g= X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Original-Bytes: 3093