public interface Lemmatizer
Defines the interface for lemmatizing tokens.
Modifier and Type | Method and Description |
---|---|
List<String> |
allPossibleLemmas(String string,
POS partOfSpeech)
Gets all lemmas.
|
com.davidbracewell.collection.trie.PatriciaTrie<String> |
allPossibleLemmasAndPrefixes(String string,
POS partOfSpeech)
Gets prefixed lemmas.
|
boolean |
canLemmatize(String input,
POS partOfSpeech) |
default String |
lemmatize(HString fragment)
Lemmatizes a token.
|
default String |
lemmatize(String string)
Determines the best lemma for a string
|
default String |
lemmatize(String string,
POS partOfSpeech)
Determines the best lemma for a string given a part of speech
|
default String lemmatize(@NonNull String string)
string
- the string to lemmatizedefault String lemmatize(@NonNull String string, @NonNull POS partOfSpeech)
string
- the stringpartOfSpeech
- the part of speechList<String> allPossibleLemmas(String string, POS partOfSpeech)
string
- the stringpartOfSpeech
- the part of speechcom.davidbracewell.collection.trie.PatriciaTrie<String> allPossibleLemmasAndPrefixes(String string, POS partOfSpeech)
string
- the stringpartOfSpeech
- the part of speechCopyright © 2016. All rights reserved.