use of com.graphaware.nlp.dsl.result.EnricherList in project neo4j-nlp by graphaware.
the class EnrichConceptProcedure method list.
@Procedure(name = "ga.nlp.enrichers.list", mode = Mode.READ)
@Description("List enrichers available")
public Stream<EnricherList> list() {
Map<String, Enricher> enrichers = getNLPManager().getEnrichmentRegistry().getEnrichers();
List<EnricherList> list = new ArrayList<>();
enrichers.values().forEach(e -> {
list.add(new EnricherList(e.getName(), e.getAlias()));
});
return list.stream();
}
Aggregations