-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mistakes in the Dutch stemmer #1
Comments
Sorry not to have responded sooner; I'll try and take a look at this within the next week. |
@rboulton Did you manage to take a look at this? As a general point, the aim of these stemmers is not to map their inputs to words in the same language, but rather to map different forms of the same word to the same string of characters (and forms of different words to different strings of characters). It just happens that in many cases the outputs are words in the same language. So it isn't necessarily an error to be mapping |
I have the same experience with the 'Dutch' Snowball stemmer. Much better stemming is realised using the 'Kraaij-Pohlmann' stemming algoritm (language="Kp"). The simplest improvement is to use this algoritm as the default for Dutch stemming. |
I agree with @ojwb that it is not a problem if the stemmer does not map to existing words, as long a it does not map to an existing word with a different meaning. Here a few examples comparing "Dutch" language with "Kp" language. Using:
Using:
Of course I have picked examples where the stemming fails, but I have found only one category where "Kp" language fails: Irregular verbs. But all together the "Kp" Kraaij-Pohlmann algorithm is a much better stemming than the obvious choice of "Dutch" language. Instead of fixing the Dutch stemming, I recommend to replace it by the "Kp" stemming. |
@Sutharsan Thanks for your input. Could you please tell me how could I set the language to 'kp' while using the python implementation of KPSS ? In which language are you doing it here? |
I'm using the stemmer as part of Solr configuration, that is where |
I am not a good Dutch speaker but I can see from the examples that some plural nouns are not stemmed correctly in the example diff for Dutch. For example, I understand that It would seem that this rule is missing entirely. |
@Sutharsan, I opened an issue in the Search API Solr queue to move to Kraaij-Pohlmann. |
I brought this matter up on the list recently: https://lists.tartarus.org/pipermail/snowball-discuss/2019-October/001658.html The history here is that Martin implemented Helpfully Martin managed to find a copy of the original C implementation from Kraaij and Pohlmann, which means we can look at the discrepancies between that and https://snowballstem.org/algorithms/kraaij_pohlmann/stemmer.html claims "in the demonstration vocabulary only 32 words out of over 45,000 stem differently" and goes on to list them (and a significant number appear to be non-Dutch words) but if I attempt to repeat that comparison I get 220 differences. One obvious difference from looking at the sources is that the C version includes vowels with accents whereas the Snowball version only considers unaccented vowels - a quick attempt to copy that in Snowball reduced the differences from 220 to 153. I'll see if I can usefully summarise the differences so people can easily take a look. If anyone knows of a good quality Dutch word list, that might be useful - |
@ojwb, have a look at https://github.com/nielsbom/Hangman for a list of Dutch nouns. |
I first want to thank everyone on the Snowball project for creating this software. It's great that we can use the software to build more sophisticated search capabilities for our users. However, when I was testing several Dutch words, I noticed there are actually quite a lot of mistakes. I'm not quite sure how to fix the problems in the Dutch stemmer, so I thought I'd mentioned them here and hope someone picks it up.
Not sure where to start, so I'll mention a couple that are incorrect (the last word is the correct one):
These are just a few, but there are quite a lot more. Should you need help verifying or testing the stemmer for the Dutch words, I'm happy to help :)
The text was updated successfully, but these errors were encountered: