Sascha.Wojewsky at heinze.de
2011-Oct-14 06:45 UTC
[Xapian-discuss] stemming an irregular forms?
Dear All, I could not find the irregular forms table in xapian. Please, could you tell me how to define/add words to the irregular forms table in xapian? Thank you a lot. Sascha
On Fri, Oct 14, 2011 at 08:45:38AM +0200, Sascha.Wojewsky at heinze.de wrote:> I could not find the irregular forms table in xapian. > Please, could you tell me how to define/add words to the irregular > forms table in xapian?You can define your own stemmer by subclassing StemImplementation: http://xapian.org/docs/apidoc/html/structXapian_1_1StemImplementation.html So if you want to use an existing stemmer but handle some words differently, just create a subclass which checks for the exceptions, and passes all other words to the existing stemmer. If there are words which are poorly handled by a particular stemmer, it's worth letting us (or the snowball team) know too. Cheers, Olly