Package com.bericotech.clavin.extractor

Examples of com.bericotech.clavin.extractor.LocationOccurrence


            // iterate over each entity Triple
            for (Triple<String, Integer, Integer> entity : entities) {
                // check if the entity is a "Location"
                if (entity.first.equalsIgnoreCase("LOCATION")) {
                    // build a LocationOccurrence object
                    locations.add(new LocationOccurrence(text.substring(entity.second, entity.third), entity.second));
                }
            }
        }

        return locations;
View Full Code Here


            // iterate over each entity Triple
            for (Triple<String, Integer, Integer> extractedEntity : extractedEntities) {
                // check if the entity is a "Location"
                if (extractedEntity.first.equalsIgnoreCase("LOCATION")) {
                    // build a LocationOccurrence object
                    LocationOccurrence location = new LocationOccurrence(
                            text.substring(extractedEntity.second(), extractedEntity.third()),
                            extractedEntity.second());
                    // filter out demonyms
                    if (!demonyms.contains(location.text))
                        // add it to the list of extracted locations
View Full Code Here

            // iterate over each entity Triple
            for (Triple<String, Integer, Integer> extractedEntity : extractedEntities) {
                // check if the entity is a "Location"
                if (extractedEntity.first.equalsIgnoreCase("LOCATION")) {
                    // build a LocationOccurrence object
                    LocationOccurrence location = new LocationOccurrence(
                            text.substring(extractedEntity.second(), extractedEntity.third()),
                            extractedEntity.second());
                    // filter out demonyms
                    if (!demonyms.contains(location.text))
                        // add it to the list of extracted locations
View Full Code Here

TOP

Related Classes of com.bericotech.clavin.extractor.LocationOccurrence

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.