tell snowballfilter not to stem certain words?

2007-08-16 Thread Donna L Gresh
Apologies if this is in the FAQ or elsewhere available but I could not find this. Can I provide a list of words that should *not* be stemmed by the SnowballFilter? My analyzer looks like this: analyzer = new StandardAnalyzer(stopwords) { public TokenStream tokenStream(String fieldName,

Re: tell snowballfilter not to stem certain words?

2007-08-16 Thread Erick Erickson
Not that I know of. I suspect you'll have to write a filter that returns the stemmed or unstemmed based on membership in your list of words not to stem. Best Erick On 8/16/07, Donna L Gresh [EMAIL PROTECTED] wrote: Apologies if this is in the FAQ or elsewhere available but I could not find

Re: tell snowballfilter not to stem certain words?

2007-08-16 Thread karl wettin
16 aug 2007 kl. 20.34 skrev Donna L Gresh: Apologies if this is in the FAQ or elsewhere available but I could not find this. Can I provide a list of words that should *not* be stemmed by the SnowballFilter? If it is a static list, simply add it as an exception in the snowball code and