[Snowball-discuss] RE: Spanish & Dutch stemmer - please help

Duong, Lien T Lien.Duong@jhuapl.edu
Wed Oct 30 12:13:01 2002


Martin,

   I did do "rm stem.*" and replace "stem.h" with "spanish.h" in driver.c
prior to the steps in my previous email. I tried to compile the original q
directory and got the same error. Do I need to include some library when
linking because I don't see create_env, close_env, or stem
subroutines/functions defined in the .c or .h files in the q directory. It
is being called by driver.c.

thanks,
Lien

-----Original Message-----
From: martin_porter@softhome.net [mailto:martin_porter@softhome.net]
Sent: Wednesday, October 30, 2002 5:55 AM
To: Duong, Lien T
Cc: snowball-discuss@lists.tartarus.org
Subject: RE: Spanish & Dutch stemmer - please help



(Lien, comments should be posted to snowball-discuss@lists.tartarus.org)

Briefly, stem.c and stem.h of q/ interefere with spanish.c and spanish.h,
which you put into q/. Either 

    rm *.o
    mv spanish.c stem.c
    mv spanish.h stem.h
or

   rm stem.*, and replace the reference to "stem.h" with "spanish.h" in
driver.c

q/driver.c is really just a template, and has to be altered depending on
what stemmers you are trying to use. But I put q/ together so that there is
a stem.c and stem.h for English in place so that the *.c files of q/ will
compile to a valid executable.

I realise this may be a bit confusing, and am thinking about what to do to
remedy it. Perhaps all that's needed is a README file in q/ explaining this
point. 

Incidentally, I was unable to replicate your error messages with my gcc. It
compiled to a working program but with a warning message. 


Also, the tarball should unpack to a created directory "snowball" - I know
about that and will fix it at the same time.

Martin


>I forgot to show you the steps:
>
>gcc -O -o Snowball p/*.o
>Snowball ../spanish/stem.sbl -o q/spanish
>cd q
>gcc -c *.c
>gcc -o spanishStemmer *.o
>
>Here is where I got the undefined references. 

... 

>>     I downloaded snowball and the .c and .h files for Spanish and Dutch.
>> The snowball seems to compile and runs find. I can't seems to create a
>> stemmer for Spanish or Dutch. I get the following undefined references:
>> stem, create_env and close_env in driver.o. I copied all the c and h
files
>> from q directories. Any help would be greatly appreciated.
>> 
>> thanks,
>> Lien
>