[Snowball-discuss] Java version

Richard Boulton richard@tartarus.org
05 Dec 2001 12:02:28 +0000


On Tue, 2001-12-04 at 17:10, Chris Cleveland wrote:
> I've started to look into creating a Java version of the Snowball
> stemmers. If anyone else is working on this, please contact me.

I had a brief look at the feasability of doing this a while back, though
I never got as far as writing anything.  I presume the way you plan to
do this is to modify the Snowball-to-C converter so that it outputs
Java: that certainly seems like the best approach to me.

As far as I could tell, you should only need to modify the file
"generator.c".  Many parts of it are going to be the same for Java as
for C, so my conclusion was that it shouldn't be too big a job.  The C
generator uses some constructs like "goto" which help make writing
generated code easy: however, there are no such constructs in snowball
itself so that shouldn't prove a problem.

The code in generator.c is a little hard to follow (some of the function
names are a little on the short side ('w()')), but it's not too bad. 
I'm sure we can clear up any confusions if you post questions to the
list.

Let us know how you get on: it would be good to integrate the ability to
write output in multiple languages into snowball.

-- 
Richard

_______________________________________________
Snowball-discuss mailing list
Snowball-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snowball-discuss

_____________________________________________________________________
VirusChecked by the Incepta Group plc
_____________________________________________________________________