Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

important_words returns values with prefix

#6

search = ActsAsXapian::Search.new([Comment], 'article_title:obama', limit => 10) articles = search.results.collect{|x| x[:model]} similar = ActsAsXapian::Similar.new([Comment], articles, :limit => 10)

where,

similar.important_words results the following array,

["obama", "Pelect_obama", "Ppresident", "barack", "Zbarack", "ZAamerica", "ZBelection", "ZCvote"]

Where some of the terms have some prefix like P, Z, ZA, ZB, ZC etc. How can I avoid this, Just I want plain word like, elect, president, barack, america etc.

Reported by veerasundaravel · February 3rd, 2009 @ 05:04 AM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.