Package org.apache.stanbol.enhancer.engines.lucenefstlinking

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


        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

Related Classes of org.apache.stanbol.enhancer.engines.lucenefstlinking.FstLinkingEngine

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.