[Snowball-discuss] Hello,
I just writen a python wrapper of snowball.
Weongyo Jeong
weongyo at panicsecurity.com
Mon Dec 19 14:21:22 GMT 2005
Hello. First sorry for my short english.
Today, I writed a python wrapper of snowball library for my own works. I
attached a file which includes all of sources. that 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 be at 2002.
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 also download a attachment file from my homepage.
http://weongyo.org/project/PySnowballStemmer/PySnowballStemmer-0.0.1.tar.gz
thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PySnowballStemmer-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 95373 bytes
Desc: not available
Url : http://lists.tartarus.org/mailman/private/snowball-discuss/attachments/20051220/f3f96a27/PySnowballStemmer-0.0.1.tar-0001.bin
More information about the Snowball-discuss
mailing list