Examples of LuceneGazetteer


Examples of com.bericotech.clavin.gazetteer.query.LuceneGazetteer

        // convert Stanford NER output to ClavinLocationResolver input
        List<LocationOccurrence> locationsForCLAVIN = convertNERtoCLAVIN(entitiesFromNER, inputString);

        // instantiate the CLAVIN location resolver
        ClavinLocationResolver clavinLocationResolver = new ClavinLocationResolver(new LuceneGazetteer(new File("./IndexDirectory")));

        // resolve location entities extracted from input text
        List<ResolvedLocation> resolvedLocations = clavinLocationResolver.resolveLocations(locationsForCLAVIN, 1, 1, false);

        // Display the ResolvedLocations found for the location names
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.