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. Use XX g of FLOUR]------------------------------------V ^----------------[300 ml of Water]----------------V-------------------[Use XX g of FLOUR]-------------------^ ^-[300]-V------[ml]-------V-[of]-V----[Water]-----^-[Use]-V-[XX]--V-------[g]-------V-[of]-V----[FLOUR]-----^ ^-[{#}]-^-[{measurement}]-^ ^----[water]-----^-[use]-^-[xx]--^-[{measurement}]-^ ^----[flour]-----^ ^-[{#}]-^ ^-[{ingredient}]-^ ^-[{ingredient}]-^ ^-[{ingredient}]-^ ^-[{ingredient}]-^
the stage will produce the following output:
{#} {measurement} of <START:ingredient> Water <END> use {#} {measurement} of <START:ingredient> FLOUR <END>