Examples of DBPSpotlightSpotEnhancementEngine


Examples of org.apache.stanbol.enhancer.engines.dbpspotlight.spot.DBPSpotlightSpotEnhancementEngine

    //we need also to create a fise:TextAnnotation to test disambiguation
    String selected = "Angela Merkel";
    Language en = new Language("en");
    UriRef textAnnotation = EnhancementEngineHelper.createTextEnhancement(ci,
        new DBPSpotlightSpotEnhancementEngine());
    MGraph model = ci.getMetadata();
    model.add(new TripleImpl(textAnnotation, Properties.ENHANCER_SELECTED_TEXT,
        new PlainLiteralImpl(selected,en)));
    model.add(new TripleImpl(textAnnotation, Properties.ENHANCER_SELECTION_CONTEXT,
        new PlainLiteralImpl(TEST_TEXT,en)));
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.