use of com.graphaware.nlp.dsl.request.PageRankRequest in project neo4j-nlp by graphaware.
the class PageRankProcedure method computePageRank.
@Procedure(name = "ga.nlp.ml.pageRank", mode = Mode.WRITE)
@Description("PageRank procedure")
public Stream<SingleResult> computePageRank(@Name("pageRankRequest") Map<String, Object> pageRankRequest) {
PageRankRequest request = mapper.convertValue(pageRankRequest, PageRankRequest.class);
PageRankProcessor processor = (PageRankProcessor) getNLPManager().getExtension(PageRankProcessor.class);
return Stream.of(processor.process(request));
}
Aggregations