Package org.apache.stanbol.enhancer.engines.celi.testutils

Examples of org.apache.stanbol.enhancer.engines.celi.testutils.MockComponentContext$MockBundleContext


    Dictionary<String, Object> properties = new Hashtable<String, Object>();
    properties.put(EnhancementEngine.PROPERTY_NAME, "celiNer");
        properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
      properties.put(CeliNamedEntityExtractionEnhancementEngine.SERVICE_URL, "http://linguagrid.org/LSGrid/ws/com.celi-france.linguagrid.namedentityrecognition.v0u0.demo");
      properties.put(CeliNamedEntityExtractionEnhancementEngine.SUPPORTED_LANGUAGES, "fr;it");
      MockComponentContext context = new MockComponentContext(properties);
    nerEngine.activate(context);
  }
View Full Code Here


    properties.put(EnhancementEngine.PROPERTY_NAME, "celiSentimentAnalysis");
    properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
    properties.put(CeliSentimentAnalysisEngine.SERVICE_URL, CELI_SENTIMENT_ANALYSIS_SERVICE_URL);
    properties.put(CeliSentimentAnalysisEngine.SUPPORTED_LANGUAGES, "fr;it");

    MockComponentContext context = new MockComponentContext(properties);
    sentimentAnalysisEngine.activate(context);
  }
View Full Code Here

    Dictionary<String, Object> properties = new Hashtable<String, Object>();
    properties.put(EnhancementEngine.PROPERTY_NAME, "celiLemmatizer");
        properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
      properties.put(SERVICE_URL, "http://linguagrid.org/LSGrid/ws/morpho-analyser");
      properties.put(MORPHOLOGICAL_ANALYSIS, completeMorphoAnalysis);
    MockComponentContext context = new MockComponentContext(properties);
    CeliLemmatizerEnhancementEngine morphoAnalysisEngine = new CeliLemmatizerEnhancementEngine();
    morphoAnalysisEngine.activate(context);
    return morphoAnalysisEngine;
  }
View Full Code Here

    public static void initEngine() throws IOException, ConfigurationException {
        Dictionary<String, Object> properties = new Hashtable<String, Object>();
        properties.put(EnhancementEngine.PROPERTY_NAME, "celiSentimentAnalysis");
    properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
    properties.put(CeliAnalyzedTextSentimentAnalysisEngine.SERVICE_URL, CELI_SENTIMENT_ANALYSIS_SERVICE_URL);
    MockComponentContext context = new MockComponentContext(properties);
        engine =  new CeliAnalyzedTextSentimentAnalysisEngine();
        engine.activate(context);
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.enhancer.engines.celi.testutils.MockComponentContext$MockBundleContext

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.