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

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


    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");
        properties.put(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
      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");
        properties.put(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
    MockComponentContext context = new MockComponentContext(properties);
    sentimentAnalysisEngine.activate(context);
  }
View Full Code Here

    properties.put(EnhancementEngine.PROPERTY_NAME, "celiClassification");
    properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
    properties.put(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
      properties.put(CeliClassificationEnhancementEngine.SERVICE_URL, "http://linguagrid.org/LSGrid/ws/dbpedia-classification");
    
    MockComponentContext context = new MockComponentContext(properties);
    classificationEngine.activate(context);
  }
View Full Code Here

        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);
        properties.put(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
    MockComponentContext context = new MockComponentContext(properties);
        engine =  new CeliAnalyzedTextSentimentAnalysisEngine();
        engine.activate(context);
    }
View Full Code Here

    properties.put(EnhancementEngine.PROPERTY_NAME, "celiLangIdentifier");
        properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
        properties.put(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
      properties.put(CeliLanguageIdentifierEnhancementEngine.SERVICE_URL, CELI_LANGID_SERVICE_URL);
     
    MockComponentContext context = new MockComponentContext(properties);
    langIdentifier.activate(context);
  }
View Full Code Here

    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(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
      properties.put(MORPHOLOGICAL_ANALYSIS, completeMorphoAnalysis);
    MockComponentContext context = new MockComponentContext(properties);
    CeliLemmatizerEnhancementEngine morphoAnalysisEngine = new CeliLemmatizerEnhancementEngine();
    morphoAnalysisEngine.activate(context);
    return morphoAnalysisEngine;
  }
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(CeliConstants.CELI_CONNECTION_TIMEOUT, "5");
        properties.put(SERVICE_URL, "http://linguagrid.org/LSGrid/ws/morpho-analyser");
        MockComponentContext context = new MockComponentContext(properties);
        engine = new CeliAnalyzedTextLemmatizerEngine();
        engine.activate(context);
    }
View Full Code Here

    public static void initEngine() throws IOException, ConfigurationException {
        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");
        MockComponentContext context = new MockComponentContext(properties);
        engine = new CeliAnalyzedTextLemmatizerEngine();
        engine.activate(context);
    }
View Full Code Here

    Dictionary<String, Object> properties = new Hashtable<String, Object>();
    properties.put(EnhancementEngine.PROPERTY_NAME, "celiLangIdentifier");
        properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
      properties.put(CeliLanguageIdentifierEnhancementEngine.SERVICE_URL, CELI_LANGID_SERVICE_URL);
     
    MockComponentContext context = new MockComponentContext(properties);
    langIdentifier.activate(context);
  }
View Full Code Here

    Dictionary<String, Object> properties = new Hashtable<String, Object>();
    properties.put(EnhancementEngine.PROPERTY_NAME, "celiClassification");
    properties.put(CeliConstants.CELI_TEST_ACCOUNT, "true");
      properties.put(CeliClassificationEnhancementEngine.SERVICE_URL, "http://linguagrid.org/LSGrid/ws/dbpedia-classification");
    
    MockComponentContext context = new MockComponentContext(properties);
    classificationEngine.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.