Operates On: Every lexical Item in the graph.
ResultsProducerStage stage = engine.getProducer("ProducerName"); String inputText = "This is a test entry"; Reader in = new StringReader(inputText); engine.reset(in); while(engine.advance() != null); List<String> output = (List<String>) producer.stream().collect(Collectors.toList());
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
If you have a text block like the following:
V----------[300 ml of water]----------V ^----------[300 ml of water]----------^ ^-[300]-V---[ml]---V--[of]--V-[water]-^ ^-[{#}]-^-[{unit}]-^-[have]-^ ^-[{measurement}]--^
the stage will produce the following JSON (if onlyEntities = true):
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")or the following (if onlyEntities = false):
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")