public class LanguageInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LanguageInfo.HumanLanguage
languages supported
|
Modifier and Type | Field and Description |
---|---|
static String |
ARABIC_PROPERTIES
list of properties files for each language
|
static String |
CHINESE_PROPERTIES |
static String |
ENGLISH_PROPERTIES |
static String |
FRENCH_PROPERTIES |
static String |
GERMAN_PROPERTIES |
static Map<LanguageInfo.HumanLanguage,String> |
languageToPropertiesFile
map enum to properties file
|
static String |
SPANISH_PROPERTIES |
Modifier and Type | Method and Description |
---|---|
static LanguageInfo.HumanLanguage |
getLanguageFromString(String inputString)
convert various input strings to language enum
|
static Properties |
getLanguageProperties(String inputString)
return an actual properties object for a given language
|
static String |
getLanguagePropertiesFile(String inputString)
return the properties file name for a specific language
|
static boolean |
isSegmenterLanguage(LanguageInfo.HumanLanguage language)
Check if language is a segmenter language, return boolean.
|
static boolean |
isSegmenterLanguage(String inputString) |
static boolean |
isStanfordCoreNLPSupportedLang(String lang)
boolean saying whether String represents a Stanford CoreNLP supported language
|
static void |
main(String[] args)
Go through all of the paths via reflection, and print them out in a TSV format.
|
public static final String ARABIC_PROPERTIES
public static final String CHINESE_PROPERTIES
public static final String ENGLISH_PROPERTIES
public static final String FRENCH_PROPERTIES
public static final String GERMAN_PROPERTIES
public static final String SPANISH_PROPERTIES
public static final Map<LanguageInfo.HumanLanguage,String> languageToPropertiesFile
public static void main(String[] args) throws IllegalAccessException
args
- Ignored.IllegalAccessException
public static String getLanguagePropertiesFile(String inputString)
public static Properties getLanguageProperties(String inputString) throws IOException
IOException
public static LanguageInfo.HumanLanguage getLanguageFromString(String inputString)
public static boolean isStanfordCoreNLPSupportedLang(String lang)
public static boolean isSegmenterLanguage(LanguageInfo.HumanLanguage language)
public static boolean isSegmenterLanguage(String inputString)