Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testStem_whenIgnoreDiacritics_shouldStem() {
- for (WordData data : new PolishStemmer().lookup("rozjechalem")){
- log.info(data.getStem());
- if (data.getStem().toString().equals("rozjechać")){
- return;
- }
- }
- assertTrue(false);
- }
- @Test
- public void testStem_whenHasManyErrors_shouldCorrectStem() {
- for (WordData data : new PolishStemmer().lookup("bżuh")){
- log.info(data.getStem());
- if (data.getStem().toString().equals("brzuch")){
- return;
- }
- }
- assertTrue(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment