public abstract class LemmaHelper extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
CITY_AVENU |
static List<String> |
DAYS_OF_WEEK |
static List<String> |
MONTH_LEMMAS |
static List<String> |
TIME_LEMMAS |
static List<String> |
TIME_LEMMAS_SHORT |
static Set<String> |
TIME_PLUS_LEMMAS |
Constructor and Description |
---|
LemmaHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
capitalizeProperName(String word) |
static boolean |
hasLemma(AnalyzedTokenReadings analyzedTokenReadings,
Collection<String> lemmas) |
static boolean |
hasLemma(AnalyzedTokenReadings analyzedTokenReadings,
Collection<String> lemmas,
Pattern posRegex) |
static boolean |
hasLemma(AnalyzedTokenReadings analyzedTokenReadings,
List<String> lemmas,
String partPos) |
static boolean |
hasLemma(AnalyzedTokenReadings analyzedTokenReadings,
Pattern pattern) |
static boolean |
hasLemma(AnalyzedTokenReadings analyzedTokenReadings,
Pattern pattern,
Pattern posTagRegex) |
static boolean |
hasLemma(AnalyzedTokenReadings analyzedTokenReadings,
String lemma) |
static boolean |
hasLemma(List<AnalyzedToken> readings,
Collection<String> lemmas) |
static boolean |
hasLemma(List<AnalyzedToken> readings,
Pattern lemmaRegex) |
static boolean |
hasLemmaBase(AnalyzedTokenReadings analyzedTokenReadings,
Collection<String> lemmas,
Pattern posRegex) |
static boolean |
isAllUppercaseUk(String word) |
static boolean |
isCapitalized(String word) |
static boolean |
isDash(AnalyzedTokenReadings analyzedTokenReadings) |
static boolean |
isInitial(AnalyzedTokenReadings analyzedTokenReadings) |
public static boolean hasLemma(AnalyzedTokenReadings analyzedTokenReadings, Collection<String> lemmas)
public static boolean hasLemma(List<AnalyzedToken> readings, Collection<String> lemmas)
public static boolean hasLemma(List<AnalyzedToken> readings, Pattern lemmaRegex)
public static boolean hasLemma(AnalyzedTokenReadings analyzedTokenReadings, List<String> lemmas, String partPos)
public static boolean hasLemma(AnalyzedTokenReadings analyzedTokenReadings, Collection<String> lemmas, Pattern posRegex)
public static boolean hasLemmaBase(AnalyzedTokenReadings analyzedTokenReadings, Collection<String> lemmas, Pattern posRegex)
public static boolean hasLemma(AnalyzedTokenReadings analyzedTokenReadings, String lemma)
public static boolean hasLemma(AnalyzedTokenReadings analyzedTokenReadings, Pattern pattern)
public static boolean hasLemma(AnalyzedTokenReadings analyzedTokenReadings, Pattern pattern, Pattern posTagRegex)
public static boolean isAllUppercaseUk(String word)
public static boolean isCapitalized(String word)
public static boolean isInitial(AnalyzedTokenReadings analyzedTokenReadings)
public static boolean isDash(AnalyzedTokenReadings analyzedTokenReadings)