use of com.graphaware.nlp.NLPManager in project neo4j-nlp by graphaware.
the class AbstractEnricher method getDefaultPipeline.
protected PipelineSpecification getDefaultPipeline() {
NLPManager manager = NLPManager.getInstance();
String pipeline = manager.getPipeline(null);
PipelineSpecification pipelineSpecification = manager.getConfiguration().loadPipeline(pipeline);
if (pipelineSpecification == null) {
throw new RuntimeException("No default pipeline");
}
return pipelineSpecification;
}
use of com.graphaware.nlp.NLPManager in project neo4j-nlp by graphaware.
the class ConceptNet5Importer method getDefaultPipeline.
private PipelineSpecification getDefaultPipeline() {
NLPManager manager = NLPManager.getInstance();
String pipeline = manager.getPipeline(null);
PipelineSpecification pipelineSpecification = manager.getConfiguration().loadPipeline(pipeline);
if (pipelineSpecification == null) {
throw new RuntimeException("No default pipeline");
}
return pipelineSpecification;
}
Aggregations