Examples of FstLinkingEngine


Examples of org.apache.stanbol.enhancer.engines.lucenefstlinking.FstLinkingEngine

        dict.put(PROCESS_ONLY_PROPER_NOUNS_STATE, true);
        TextProcessingConfig tpc = TextProcessingConfig.createInstance(dict);
        EntityLinkerConfig elc = new EntityLinkerConfig();
        elc.setMinFoundTokens(2);//this is assumed by this test
        elc.setRedirectProcessingMode(RedirectProcessingMode.FOLLOW);
        FstLinkingEngine engine = new FstLinkingEngine("proper-noun-linking",
            fstConfig, tpc, elc);
        processConentItem(engine);
        validateEnhancements(
            Arrays.asList(
                "Chancellor", "Angela Merkel", "Greece", "Greeks", "Germany", "SPD"),
View Full Code Here

Examples of org.apache.stanbol.enhancer.engines.lucenefstlinking.FstLinkingEngine

        dict.put(PROCESS_ONLY_PROPER_NOUNS_STATE, false);
        TextProcessingConfig tpc = TextProcessingConfig.createInstance(dict);
        EntityLinkerConfig elc = new EntityLinkerConfig();
        elc.setMinFoundTokens(2);//this is assumed by this test
        elc.setRedirectProcessingMode(RedirectProcessingMode.FOLLOW);
        FstLinkingEngine engine = new FstLinkingEngine("proper-noun-linking",
            fstConfig, tpc, elc);
        processConentItem(engine);
        validateEnhancements(
            Arrays.asList(
                "Chancellor", "Angela Merkel", "Greece", "Greeks", "Germany", "SPD",
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.