Search in sources :

Example 6 with NLPModule

use of com.graphaware.nlp.module.NLPModule in project neo4j-nlp by graphaware.

the class PipelineLifecycleIntegrationTest method setUp.

@Before
@Override
public void setUp() throws Exception {
    super.setUp();
    GraphAwareRuntime runtime = GraphAwareRuntimeFactory.createRuntime(getDatabase());
    runtime.registerModule(new NLPModule("NLP", NLPConfiguration.defaultConfiguration(), getDatabase()));
    runtime.start();
    runtime.waitUntilStarted();
}
Also used : GraphAwareRuntime(com.graphaware.runtime.GraphAwareRuntime) NLPModule(com.graphaware.nlp.module.NLPModule) Before(org.junit.Before)

Aggregations

NLPModule (com.graphaware.nlp.module.NLPModule)6 GraphAwareRuntime (com.graphaware.runtime.GraphAwareRuntime)6 Test (org.junit.Test)4 AbstractEmbeddedTest (com.graphaware.nlp.AbstractEmbeddedTest)3 ObjectMapper (org.codehaus.jackson.map.ObjectMapper)3 Transaction (org.neo4j.graphdb.Transaction)3 GraphKeyValueStore (com.graphaware.common.kv.GraphKeyValueStore)2 PipelineSpecification (com.graphaware.nlp.dsl.request.PipelineSpecification)2 StubTextProcessor (com.graphaware.nlp.stub.StubTextProcessor)2 QueryBasedWorkflowInput (com.graphaware.nlp.workflow.input.QueryBasedWorkflowInput)1 WorkflowInputQueryConfiguration (com.graphaware.nlp.workflow.input.WorkflowInputQueryConfiguration)1 GraphAwareIntegrationTest (com.graphaware.test.integration.GraphAwareIntegrationTest)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1