lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Stop words filter
Date Wed, 23 Jun 2010 17:56:59 GMT
On the chance that this is an XY problem
why can't you use StopFilter and PorterStemFilter in
your filter chain rather than try to do this yourself?


On Tue, Jun 22, 2010 at 10:49 PM, Vinicius Carvalho <> wrote:

> Hello there! I've been using lucene as a Fult Text Search solution for some
> time. And  although I'm familiar with Analyzers and Stemmers I never used
> them directly.
> I'm testing a few experiments on Sentiment Analysis and our implementation
> needs to perform stemming and stop word removal. I thought using lucene
> built-in support to spare me some coding time.
> Is there any example? I'm trying
> TokenStream stream = analyzer.tokenStream("", new StringReader(inputStr));
> Problem is that I could not find a way to get the result tokens. I was
> expecting something like stream.getTokens:Token[] :P
> Could someone point me in the right direction?
> Regards
> --
> The intuitive mind is a sacred gift and the
> rational mind is a faithful servant. We have
> created a society that honors the servant and
> has forgotten the gift.

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