Search in sources :

Example 1 with QueryBasedVectorComputation

use of com.graphaware.nlp.vector.QueryBasedVectorComputation in project neo4j-nlp by graphaware.

the class NLPManager method init.

public void init(GraphDatabaseService database, NLPConfiguration nlpConfiguration, DynamicConfiguration configuration) {
    if (initialized) {
        return;
    }
    this.nlpConfiguration = nlpConfiguration;
    this.textProcessorsManager = new TextProcessorsManager();
    this.configuration = configuration;
    this.database = database;
    this.persistenceRegistry = new PersistenceRegistry(database);
    this.enrichmentRegistry = buildAndRegisterEnrichers();
    this.eventDispatcher = new EventDispatcher();
    this.vectorComputation = new QueryBasedVectorComputation(database);
    loadExtensions();
    registerEventListeners();
    initialized = true;
    registerPipelinesFromConfig();
}
Also used : PersistenceRegistry(com.graphaware.nlp.persistence.PersistenceRegistry) EventDispatcher(com.graphaware.nlp.event.EventDispatcher) TextProcessorsManager(com.graphaware.nlp.processor.TextProcessorsManager) QueryBasedVectorComputation(com.graphaware.nlp.vector.QueryBasedVectorComputation)

Aggregations

EventDispatcher (com.graphaware.nlp.event.EventDispatcher)1 PersistenceRegistry (com.graphaware.nlp.persistence.PersistenceRegistry)1 TextProcessorsManager (com.graphaware.nlp.processor.TextProcessorsManager)1 QueryBasedVectorComputation (com.graphaware.nlp.vector.QueryBasedVectorComputation)1