blob: 15b1ee7bb67e98a40eebe043662c12d45a357fed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.process;
import com.yahoo.language.Language;
import java.util.List;
/**
* Interface providing stemming of single words.
*
* @author Mathias Mølster Lidal
*/
public interface Stemmer {
/**
* Stem input according to specified stemming mode.
*
* @param input the string to stem.
* @param mode the stemming mode
* @param language the language to use for stemming
* @return a list of possible stems. Empty if none.
* @throws ProcessingException thrown if there is an exception stemming this input
*/
List<StemList> stem(String input, StemMode mode, Language language);
}
|