blob: da8a73407ff46614688f4b66a333b0e66dd957ef (
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 2017 Yahoo Holdings. 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;
/**
* <p>Interface providing stemming of single words.</p>
*
* @author <a href="mailto:mathiasm@yahoo-inc.com">Mathias Mølster Lidal</a>
*/
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 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);
}
|