Package com.bericotech.clavin.gazetteer.query

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


        // 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

Related Classes of com.bericotech.clavin.gazetteer.query.LuceneGazetteer$QueryPart

Copyright © 2018 www.massapicom. 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.