Package com.yahoo.language.process
Interface Stemmer
- All Known Implementing Classes:
StemmerImpl
public interface Stemmer
Interface providing stemming of single words.
- Author:
- Mathias Mølster Lidal
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.use #stem(String, LinguisticsParameters)stem(String input, LinguisticsParameters parameters) Stems the given input.Deprecated.use #stem(String, LinguisticsParameters)
-
Method Details
-
stem
@Deprecated default List<StemList> stem(String input, Language language, StemMode mode, boolean removeAccents) Deprecated.use #stem(String, LinguisticsParameters)Stem input according to specified stemming mode. This default implementation invokes stem(input, mode, language) and so ignores the removeAccents argument.- Parameters:
input- the string to stem.language- the language to use for stemmingmode- the stemming moderemoveAccents- whether to normalize accents and similar- Returns:
- a list of possible stems. Empty if none.
- Throws:
ProcessingException- thrown if there is an exception stemming this input
-
stem
Deprecated.use #stem(String, LinguisticsParameters)Stem input according to specified stemming mode.- Parameters:
input- the string to stem.mode- the stemming modelanguage- the language to use for stemming- Returns:
- a list of possible stems. Empty if none.
- Throws:
ProcessingException- thrown if there is an exception stemming this input
-
stem
Stems the given input.- Returns:
- the stems for each segment of the input. Each segment is an entry in the outer list, where that entry contains the possible stems of that segment. For most text there will be a single entry in the returned list, containing either a single stem or (if given StemMode.ALL), multiple alternative stems.
-