[Snowball-discuss] Hello, I just writen a python wrapper of snowball.

From: Weongyo Jeong (weongyo@panicsecurity.com)
Date: Mon Dec 19 2005 - 14:21:22 GMT

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
# 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")
>>> a.delete ()

you can also download a attachment file from my homepage.



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:47 BST