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();
}
Aggregations