Is there a way to use Lucene stemming and stop word removal without using the
rest of the tool? I am downloading the code now, but I imagine the answer
might be deeply burried. I would like to be able to send in a phrase and get
back a collection of keywords if possible.
I am thinking of
Yes, you can use just the Analysis part. For instance, I use this for
http://www.simpy.com and I believe we also have this in the Lucene book
as part of the source code package:
/**
* Gets Tokens extracted from the given text, using the specified
Analyzer.
*
* @param analyzer
: Otis Gospodnetic [EMAIL PROTECTED]
Date: Wednesday, November 17, 2004 7:17 pm
Subject: Re: Considering intermediary solution before Lucene question
Yes, you can use just the Analysis part. For instance, I use this for
http://www.simpy.com and I believe we also have this in the Lucene
bookas
John,
It actually should be pretty easy to use just the parts of Lucene you
want (the analyzers, etc) without using the rest. See the example of
the PorterStemmer from this article:
http://www.onjava.com/pub/a/onjava/2003/01/15/lucene.html?page=2
You could feed a Reader to the tokenStream()
:08 pm
Subject: Re: Considering intermediary solution before Lucene question
John,
It actually should be pretty easy to use just the parts of Lucene you
want (the analyzers, etc) without using the rest. See the example of
the PorterStemmer from this article:
http://www.onjava.com/pub