[Snowball-discuss] Hello,
I just writen a python wrapper of snowball.
Weongyo Jeong
weongyo at panicsecurity.com
Fri Jan 6 14:37:17 GMT 2006
Hello. First sorry for my short english.
Someday ago, I writed a python wrapper of snowball library for my own
works. This includes python code too.
I also know that http://sourceforge.net/projects/pystemmer/ exists. but
i can't run on my environment and it's old codes which did updated at
2002 year.
to compile this, do like below:
$ tar xvvzf PySnowballStemmer-0.0.1.tar.gz
$ cd PySnowballStemmer-0.0.1
$ python setup.py build
$ su - root
Password:
# python setup.py install
# exit
$ python
Python 2.4.2 (#2, Sep 30 2005, 22:23:39)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import SnowballStemmer
>>> a = SnowballStemmer.SnowballStemmer ()
>>> a.new ("english", "UTF_8")
>>> a.stem_str ("simple")
'simpl'
>>> a.delete ()
you can download a file from my homepage.
http://weongyo.org/project/PySnowballStemmer/PySnowballStemmer-0.0.1.tar.gz
thanks.
More information about the Snowball-discuss
mailing list