Search in sources :

Example 1 with EnricherList

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();
}
Also used : ArrayList(java.util.ArrayList) EnricherList(com.graphaware.nlp.dsl.result.EnricherList) Enricher(com.graphaware.nlp.enrich.Enricher) Description(org.neo4j.procedure.Description) Procedure(org.neo4j.procedure.Procedure)

Aggregations

EnricherList (com.graphaware.nlp.dsl.result.EnricherList)1 Enricher (com.graphaware.nlp.enrich.Enricher)1 ArrayList (java.util.ArrayList)1 Description (org.neo4j.procedure.Description)1 Procedure (org.neo4j.procedure.Procedure)1