Search in sources :

Example 1 with FilterRequest

use of com.graphaware.nlp.dsl.request.FilterRequest in project neo4j-nlp by graphaware.

the class AnnotateProcedure method filter.

@Procedure(name = "ga.nlp.filter", mode = Mode.WRITE)
@Description("Boolean filter for text accordingly to complex filter definition")
public Stream<SingleResult> filter(@Name("filterRequest") Map<String, Object> filterRequest) {
    FilterRequest request = FilterRequest.fromMap(filterRequest);
    Object result = getNLPManager().filter(request);
    return Stream.of(new SingleResult(result));
}
Also used : SingleResult(com.graphaware.nlp.dsl.result.SingleResult) FilterRequest(com.graphaware.nlp.dsl.request.FilterRequest) Description(org.neo4j.procedure.Description) Procedure(org.neo4j.procedure.Procedure)

Aggregations

FilterRequest (com.graphaware.nlp.dsl.request.FilterRequest)1 SingleResult (com.graphaware.nlp.dsl.result.SingleResult)1 Description (org.neo4j.procedure.Description)1 Procedure (org.neo4j.procedure.Procedure)1