Does anyone know if xapian stemming support suffix -er? I tried -s and -ing both work, but not -er. _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.msn.com/cn
On Wed, Jul 04, 2007 at 05:54:32PM +0800, Yan Hao wrote:> Does anyone know if xapian stemming support suffix -er? I tried -s > and -ing both work, but not -er.Do you have an example word where -er should be removed in stemming? J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
On Wed, Jul 04, 2007 at 05:54:32PM +0800, Yan Hao wrote:> Does anyone know if xapian stemming support suffix -er? I tried -s and -ing > both work, but not -er.Yes, suffix -er is removed in step 4: http://snowball.tartarus.org/algorithms/english/stemmer.html And "computer" stems to "comput" (as do "compute", "computation", etc). There are rules about when steps are applied, so short words like "infer" and "over" don't have -er removed. Certainly in these two cases, removing -er wouldn't be beneficial. Cheers, Olly
I created sample files with test, tester, testing, tests. A query of "test" could find all of them except "tester".>From: James Aylett <james-xapian@tartarus.org> >To: xapian-discuss@lists.xapian.org >Subject: Re: [Xapian-discuss] Stemming problem >Date: Wed, 4 Jul 2007 11:23:16 +0100 > >On Wed, Jul 04, 2007 at 05:54:32PM +0800, Yan Hao wrote: > > > Does anyone know if xapian stemming support suffix -er? I tried -s > > and -ing both work, but not -er. > >Do you have an example word where -er should be removed in stemming? > >J > >-- >/--------------------------------------------------------------------------\> James Aylettxapian.org> james@tartarus.orguncertaintydivision.org> >_______________________________________________ >Xapian-discuss mailing list >Xapian-discuss@lists.xapian.org >http://lists.xapian.org/mailman/listinfo/xapian-discuss_________________________________________________________________ ??????????????? MSN Hotmail? http://www.hotmail.com