Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
fixed logic from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbot committed Apr 27, 2015
1 parent 624f299 commit ada50e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/mediameter/cliff/ParseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,11 @@ public static EntityParser getParserInstance() throws Exception{

boolean useFuzzyMatching = false;
File gazetteerDir = new File(PATH_TO_GEONAMES_INDEX);
if( !(gazetteerDir.exists() && gazetteerDir.isDirectory() ) ){
if( !gazetteerDir.exists() || !gazetteerDir.isDirectory() ){
logger.error("Missing gazetter! Download and build a CLAVIN IndexDirectory at "+PATH_TO_GEONAMES_INDEX);
} else {
logger.info("Loading CLAVIN Gazetteer from "+PATH_TO_GEONAMES_INDEX);
}
logger.info("Loading CLAVIN Gazetteer from "+PATH_TO_GEONAMES_INDEX);
Gazetteer gazetteer = new LuceneGazetteer(new File(PATH_TO_GEONAMES_INDEX));
resolver = new CliffLocationResolver(gazetteer);

Expand Down

0 comments on commit ada50e8

Please sign in to comment.