Using SnowBallAnalyzer with PyLucene
-
30-10-2019 - |
Question
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.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow