Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Andi Vajda
On Wed, 28 Oct 2009, Marvin Humphrey wrote: On Wed, Oct 28, 2009 at 12:20:55PM -0700, Andi Vajda wrote: There may be an API in the Snowball library to do this enumeration. There's this, from libstemmer.h: /** Returns an array of the names of the available stemming algorithms. * Not

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Marvin Humphrey
On Wed, Oct 28, 2009 at 12:20:55PM -0700, Andi Vajda wrote: > There may be an API in the Snowball library to do this enumeration. There's this, from libstemmer.h: /** Returns an array of the names of the available stemming algorithms. * Note that these are the canonical names - aliase

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Andi Vajda
On Oct 28, 2009, at 12:09, Bill Janssen wrote: Andi Vajda wrote: The snowball JAR comes from this statement in the Makefile: SNOWBALL_JAR=$(LUCENE)/build/contrib/snowball/lucene-snowball-$ (LUCENE_VER).jar Which means that it's whatever corresponds to the Lucene version checked out. For

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Bill Janssen
Sorry, my mistake. Should be: for n,v in lucene.__dict__.items(): if n.endswith("Stemmer") and issubclass(v, lucene.SnowballProgram): print n[:-len("Stemmer")] That produces the list. Bill

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Bill Janssen
Andi Vajda wrote: > The snowball JAR comes from this statement in the Makefile: > SNOWBALL_JAR=$(LUCENE)/build/contrib/snowball/lucene-snowball-$(LUCENE_VER).jar > > Which means that it's whatever corresponds to the Lucene version > checked out. For PyLucene 2.9.0, that is: >http://svn.apach

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Andi Vajda
On Wed, 28 Oct 2009, Bill Janssen wrote: Is there a programmatic way to figure out whether the Snowball stemmer for a particular language X is supported in a particular installation of PyLucene? The snowball JAR comes from this statement in the Makefile: SNOWBALL_JAR=$(LUCENE)/build/contrib/s

which Snowball stemmers are in PyLucene?

2009-10-28 Thread Bill Janssen
Is there a programmatic way to figure out whether the Snowball stemmer for a particular language X is supported in a particular installation of PyLucene? Bill