Thread View: news.software.readers
9 messages
9 total messages
Started by Jan Sacharuk
Wed, 04 Mar 1998 00:00
[slrn] Double colon usage, matching whole words in scorefile
Author: Jan Sacharuk
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
31 lines
1963 bytes
1963 bytes
Well, as near as I can tell, the :: usage in the scorefiles is exactly
the opposite of what I read in the SCORE_FAQ. Theoretically, the ::
was supposed to act as an OR, and the : is the AND, but I've found the
behavior to be exactly opposite. And I get the impression that slrn
itself knows better when it's creating a score entry. Do I chalk this
one up to outdated documentation?
Also, I want to search for the string 'AMP' in a line, but I don't
want it to score things that have 'amp' buried in there. So,
1) How do I get slrn to search for a word on its own, not embedded?
2) How do I search for this *particular* string of capital letters?
The faq only mentions how to score files that do or don't have capital
letters in them.
Thanks in advance.
Jan Sacharuk
--
**** **** ===== Remove dontspamme from my address to mail me ============
** *** ** GCS d- s++:-- a--- C++++@>$ UISX++>$ P L>++ E>++$ W++ N+ o? K-?
** * ** w---(++++) !O !M V-- PS+>$ PE Y+ !PGP- t- 5+++>++++ X+ R tv--
** j.s ** b++>+++ DI++++ D+ G++(+++)>++++ e>+++ h>$ r++ y+**
** + ** -----------------------------------------------------------------
**v.y** I was in love with Jesus...
** ** but I think I had a crush on Lucifer.
* -Tori Amos
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: Jan Hlavacek
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
34 lines
1797 bytes
1797 bytes
On 4 Mar 1998 17:36:51 GMT, Jan Sacharuk <jan@dontspamme.cs.ualberta.ca>
wrote:
> Well, as near as I can tell, the :: usage in the scorefiles is exactly
> the opposite of what I read in the SCORE_FAQ. Theoretically, the ::
> was supposed to act as an OR, and the : is the AND, but I've found the
> behavior to be exactly opposite.
Any examples? My slrn seems to agree with SCORE_FAQ.
> And I get the impression that slrn itself knows better when it's
> creating a score entry.
Huh?
> Also, I want to search for the string 'AMP' in a line, but I don't
> want it to score things that have 'amp' buried in there. So,
>
> 1) How do I get slrn to search for a word on its own, not embedded?
\<word\>
> 2) How do I search for this *particular* string of capital letters?
\c\<AMP\>
lahvak
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: Heikki Kantola
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
38 lines
2324 bytes
2324 bytes
Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> informed news.software.readers with the following: >Well, as near as I can tell, the :: usage in the scorefiles is exactly >the opposite of what I read in the SCORE_FAQ. Theoretically, the :: >was supposed to act as an OR, and the : is the AND, but I've found the >behavior to be exactly opposite. And I get the impression that slrn >itself knows better when it's creating a score entry. Do I chalk this >one up to outdated documentation? No, I think you must have somehow misread the doc, I can easily interpret it so that ":" is AND and "::" is OR. >Also, I want to search for the string 'AMP' in a line, but I don't >want it to score things that have 'amp' buried in there. So, > >1) How do I get slrn to search for a word on its own, not embedded? \<word\> >2) How do I search for this *particular* string of capital letters? >The faq only mentions how to score files that do or don't have capital >letters in them. That answer gives sort of answer, with "\c" you can turn on case sensitivity (and "\C" turns it off, which is the default), for example your upcase only string should be matched with "\cAMP". In general, if you want more info about Slrn's regexp syntax, see <URL: http://www.math.ohio-state.edu/%7Elahvak/software/slang/regexps.html>. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: Preben 'Peppe' Guldberg
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
40 lines
2463 bytes
2463 bytes
Thus wrote Jan Sacharuk <jan@dontspamme.cs.ualberta.ca>: > In article <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi>, Heikki Kantola wrote: > >Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> informed > >news.software.readers with the following: > >>Well, as near as I can tell, the :: usage in the scorefiles is exactly > >>the opposite of what I read in the SCORE_FAQ. Theoretically, the :: > >>was supposed to act as an OR, and the : is the AND, but I've found the > >>behavior to be exactly opposite. And I get the impression that slrn > >>itself knows better when it's creating a score entry. Do I chalk this > >>one up to outdated documentation? > >No, I think you must have somehow misread the doc, I can easily > >interpret it so that ":" is AND and "::" is OR. > I also interpreted it that way. However, nothing at all worked until I > took out the extra colon. Now, eveything works perfect. And if you > create a score entry, slrn only uses the ':', not a '::'. That's where > I got it from. Previous to this change, none of my scoring showed up > properly. Can you give an example? My scoring was not good until I found out about ::. The following example never found 'vim' until I put in the extra :. [*] Score:: 5 Subject: slrn Subject: \<vim\> How have you done? Peppe -- Preben Guldberg __/-\__ The woods are lovely, dark and deep c928400@student.dtu.dk (o o) But I have promises to keep ----------------------oOOo (_) oOOo-- And miles to go before I sleep. http://www.student.dtu.dk/~c928400 --Robert Frost
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: Jan Sacharuk
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
51 lines
2901 bytes
2901 bytes
In article <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi>, Heikki Kantola wrote:
>Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> informed
>news.software.readers with the following:
>>Well, as near as I can tell, the :: usage in the scorefiles is exactly
>>the opposite of what I read in the SCORE_FAQ. Theoretically, the ::
>>was supposed to act as an OR, and the : is the AND, but I've found the
>>behavior to be exactly opposite. And I get the impression that slrn
>>itself knows better when it's creating a score entry. Do I chalk this
>>one up to outdated documentation?
>
>No, I think you must have somehow misread the doc, I can easily
>interpret it so that ":" is AND and "::" is OR.
I also interpreted it that way. However, nothing at all worked until I
took out the extra colon. Now, eveything works perfect. And if you
create a score entry, slrn only uses the ':', not a '::'. That's where
I got it from. Previous to this change, none of my scoring showed up
properly.
>>Also, I want to search for the string 'AMP' in a line, but I don't
>>want it to score things that have 'amp' buried in there. So,
>>
>>1) How do I get slrn to search for a word on its own, not embedded?
>
>\<word\>
Thanks. :)
>That answer gives sort of answer, with "\c" you can turn on case
>sensitivity (and "\C" turns it off, which is the default), for example
>your upcase only string should be matched with "\cAMP".
>
>In general, if you want more info about Slrn's regexp syntax, see <URL:
>http://www.math.ohio-state.edu/%7Elahvak/software/slang/regexps.html>.
Double thanks.
Jan Sacharuk
--
**** **** ===== Remove dontspamme from my address to mail me ============
** *** ** GCS d- s++:-- a--- C++++@>$ UISX++>$ P L>++ E>++$ W++ N+ o? K-?
** * ** w---(++++) !O !M V-- PS+>$ PE Y+ !PGP- t- 5+++>++++ X+ R tv--
** j.s ** b++>+++ DI++++ D+ G++(+++)>++++ e>+++ h>$ r++ y+**
** + ** -----------------------------------------------------------------
**v.y** I was in love with Jesus...
** ** but I think I had a crush on Lucifer.
* -Tori Amos
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: Jan Sacharuk
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
58 lines
2950 bytes
2950 bytes
In article <6dll9l$bbv@padre.unico.com.au>, David Goh wrote:
>In news.software.readers, on 5 Mar 1998 04:02:23 GMT
>Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> wrote:
>>In article <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi>, Heikki Kantola wrote:
>>>No, I think you must have somehow misread the doc, I can easily
>>>interpret it so that ":" is AND and "::" is OR.
>>I also interpreted it that way. However, nothing at all worked until I
>>took out the extra colon. Now, eveything works perfect. And if you
>>create a score entry, slrn only uses the ':', not a '::'. That's where
>>I got it from. Previous to this change, none of my scoring showed up
>>properly.
>
>*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. :)
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
And when I made the Score line : Score::, it worked. I'm using
0.9.4.6.
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.
I find that this works...I know it's odd. :)
--
**** **** ===== Remove dontspamme from my address to mail me ============
** *** ** GCS d- s++:-- a--- C++++@>$ UISX++>$ P L>++ E>++$ W++ N+ o? K-?
** * ** w---(++++) !O !M V-- PS+>$ PE Y+ !PGP- t- 5+++>++++ X+ R tv--
** j.s ** b++>+++ DI++++ D+ G++(+++)>++++ e>+++ h>$ r++ y+**
** + ** -----------------------------------------------------------------
**v.y** I was in love with Jesus...
** ** but I think I had a crush on Lucifer.
* -Tori Amos
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: David Goh
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
49 lines
2353 bytes
2353 bytes
In news.software.readers, on 5 Mar 1998 04:02:23 GMT
Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> wrote:
>In article <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi>, Heikki Kantola wrote:
>>No, I think you must have somehow misread the doc, I can easily
>>interpret it so that ":" is AND and "::" is OR.
>I also interpreted it that way. However, nothing at all worked until I
>took out the extra colon. Now, eveything works perfect. And if you
>create a score entry, slrn only uses the ':', not a '::'. That's where
>I got it from. Previous to this change, none of my scoring showed up
>properly.
*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...
And for this entry, posts with (aus.tv AND aus.sf AND aus.films) in the
Newsgroups: line get a score of -50...
[aus.sf.babylon5]
% Don't want crossposts
Score: -50
Newsgroups: aus\.tv
Newsgroups: aus\.sf
Newsgroups: aus\.films
*ponder* Unless the meaning of the :: and : has changed between
Slrn Version: 0.9.4.3 (Jan 14 1998 13:20:32)
and whatever the current version you're using is, that works for me.
Later,
David
--
| david@unico.com.au (David Goh, Unico Computer Systems, +61-3-9866-5688)
Power corrupts. And atomic power corrupts atomically.
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: 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.
Re: [slrn] Double colon usage, matching whole words in scorefile
Author: Jan Sacharuk
Date: Fri, 06 Mar 1998 00:00
Date: Fri, 06 Mar 1998 00:00
70 lines
3244 bytes
3244 bytes
In article <6dnmbf$g8e@padre.unico.com.au>, David Goh wrote:
>That's what I find weird... why do you think it's odd? *ponder*
I found it weird because it didn't seem to work the way that both you
and the SCORE_FAQ told me it should work. I totally agree with the way
you interpreted things; that's the way I did at first as
well. However, when I was actually trying it, nothing seemed to work.
>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
I think that this is the way it *should* work. It''s just that my
experience tells me otherwise. :P
It could be that I'm doing something *else* wrong, and it's affecting
the scoring. I'll keep looking around for an answer. :)
>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.
I agree that the weirdness is not in the way that the file should be
interpreted, merely in the way that I perceive that it *is* being
interpreted. :)
I dunno. Thanks for being so patient...I'll see if I can resolve
everything.
Jan Sacharuk
--
**** **** ===== Remove dontspamme from my address to mail me ============
** *** ** GCS d- s++:-- a--- C++++@>$ UISX++>$ P L>++ E>++$ W++ N+ o? K-?
** * ** w---(++++) !O !M V-- PS+>$ PE Y+ !PGP- t- 5+++>++++ X+ R tv--
** j.s ** b++>+++ DI++++ D+ G++(+++)>++++ e>+++ h>$ r++ y+**
** + ** -----------------------------------------------------------------
**v.y** I was in love with Jesus...
** ** but I think I had a crush on Lucifer.
* -Tori Amos
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