سؤال

I'm trying to use SnowBallAnalyzer in PyLucene but I always get an error saying: InvalidArgsError when I try to create an instance of it like this:

analyzer = SnowBallAnalyzer("Spanish")

or

analyzer = SnowBallAnalyzer("Spanish", STOPWORDS)

What I really need is i.e if I search for "Fútbol", I should obtain the documents that have the word "futbol" or "fútbol". So... I would like to apply SnowBallAnalyzer to the text I would like to index an to the query.

Any help will be appreciated.

Thanks in advance.

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top