lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: tell snowballfilter not to stem certain words?
Date Thu, 16 Aug 2007 18:41:52 GMT
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 <gresh@us.ibm.com> wrote:
>
> 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, java.io.Reader
> reader) {
>           return new SnowballFilter(super.tokenStream(fieldName,reader),
>                 "English");
>         }
> };
>
> It is removing the trailing "S" from some words which I don't want to have
> this happen for--
>
> Donna
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message