Examples of disambiguators()


Examples of org.dbpedia.spotlight.db.SpotlightModel.disambiguators()

        SpotlightModel db = SpotlightModel.fromFolder(modelFolder);

        setNamespacePrefix(db.properties().getProperty("namespace"));
        setTokenizer(db.tokenizer());
        setSpotters(db.spotters());
        setDisambiguators(db.disambiguators());
        setSparqlExecuter(db.properties().getProperty("endpoint", ""),db.properties().getProperty("graph", ""));

    }
}
View Full Code Here

Examples of org.dbpedia.spotlight.model.SpotlightFactory.disambiguators()

            System.err.println("\n"+ usage);
            System.exit(1);
        }
        // Set static annotator that will be used by Annotate and Disambiguate
        final SpotlightFactory factory  = new SpotlightFactory(configuration);
        setDisambiguators(factory.disambiguators());
        setSpotters(factory.spotters());
        setNamespacePrefix(configuration.getDbpediaResource());
        setSparqlExecuter(configuration.getSparqlEndpoint(), configuration.getSparqlMainGraph());
        setSimilarityThresholds(configuration.getSimilarityThresholds());
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.