I am importing this following :
import org.apache.lucene.analysis.PorterStemmer
in Java program. The whole package is available in refrenced library.
I tried importing
import org.apache.lucene.analysis.PorterStemFilter
and
import org.apache.lucene.analysis.Analyzer;
both are working fine except the first one mentioned
Can anybody point out why ?!
Package
org.apache.lucene.analysis.PorterStemmeris not a public package which is why you cannot import it. If you look at this package inside the library, you’ll notice that it begins withclass PorterStemmerinstead ofpublic class PorterStemmer.