in geoentitylinker-addon/src/main/java/opennlp/addons/geoentitylinker/GeoEntityLinker.java [191:207]
public void init(EntityLinkerProperties properties) throws IOException {
if (properties == null) {
throw new IllegalArgumentException("EntityLinkerProperties cannot be null");
}
this.linkerProperties = properties;
countryContext = new AdminBoundaryContextGenerator(this.linkerProperties);
gazetteerSearcher = new GazetteerSearcher(this.linkerProperties);
String rowsRetStr = this.linkerProperties.getProperty("opennlp.geoentitylinker.gaz.rowsreturned", "2");
int rws;
try {
rws = Integer.parseInt(rowsRetStr);
} catch (NumberFormatException e) {
rws = 2;
}
topN = rws;
loadScorers();
}