[Xapian-discuss] python how do i stem words in python?

mark markkicks at gmail.com
Sat Aug 16 01:52:40 BST 2008


hi,
i am newbie to xapian and am trying to get started with it in python.

there is no stemmer.stem_word method in the latest python library. how
do i stem words before doing doc.add_posting?

is there any sample hello world code in python that i can use?
thanks a lot!

>>> stemmer = xapian.Stem('english')
>>> stemmer.
stemmer.__call__                 stemmer.__reduce_ex__
stemmer.__class__                stemmer.__repr__
stemmer.__delattr__              stemmer.__setattr__
stemmer.__dict__                 stemmer.__str__
stemmer.__doc__                  stemmer.__swig_destroy__
stemmer.__getattribute__         stemmer.__weakref__
stemmer.__hash__                 stemmer.get_available_languages
stemmer.__init__                 stemmer.get_description
stemmer.__module__               stemmer.this
stemmer.__new__                  stemmer.thisown
stemmer.__reduce__



More information about the Xapian-discuss mailing list