I saw the following has a porter stemmer implementation for C http://tartarus.org/martin/PorterStemmer/
However, though I have tried several times, I cannot integrate it in my code. Can someone tell me how I should call the downloaded file and what I should pass to it in order to stem a string.
In other words, i have a program that requires to stem strings and i need a porter stemmer for that . I am thinking of using the above but i dont know how to use the downloaded file. Please give example
The c code supplies the function:
That is the one you should call. It modifies the original string, and returns the length of the result.The typical usage is demonstrated in the function stem_file(), which does something like:
I don't know what the 2nd and 3rd parameters mean exactly. Look it up.