public class CountryLanguageManager extends Object
Constructor and Description |
---|
CountryLanguageManager(String countryLangFileName)
Constructor to initialize a CountryLanguageManager object, which is used
to determine if a string or a pair of strings should be assigned type
LOC.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCountryLang(String str1,
String str2)
Returns true if the two strings compared are a country-language pair.
|
float |
scoring(String str1,
String str2)
Primary scoring function called by EntityComparison.
|
public CountryLanguageManager(String countryLangFileName) throws IOException
countryLangFileName
- File name to obtain list of country-language stringsIOException
public float scoring(String str1, String str2)
str1
- First of two strings being comparedstr2
- Second of two strings being comparedpublic boolean isCountryLang(String str1, String str2)
str1
- First of two strings being comparedstr2
- Second of two strings being comparedCopyright © 2017. All rights reserved.