Package org.dbpedia.spotlight.model.SpotlightConfiguration

Examples of org.dbpedia.spotlight.model.SpotlightConfiguration.DisambiguationPolicy


        }
        return spotter;
    }

    public static ParagraphDisambiguatorJ getDisambiguator(String name) throws InputException {
        DisambiguationPolicy policy = DisambiguationPolicy.Default;
        try {
            policy = DisambiguationPolicy.valueOf(name);
        } catch (IllegalArgumentException e) {
            throw new InputException(String.format("Specified parameter disambiguator=%s is invalid. Use one of %s.",name,DisambiguationPolicy.values()));
        }
View Full Code Here

TOP

Related Classes of org.dbpedia.spotlight.model.SpotlightConfiguration.DisambiguationPolicy

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.