...
...
Operates On: Every lexical Item in the graph.
Include Page | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
...
...
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"type": "MarkupProducerStage",
"name": "MarkupProducer",
"boundaryFlags": [
"TEXT_BLOCK_SPLIT", "SENTENCE_SPLIT"
],
"normalizeTags": ["#", "measurement"],
"replaceTags": ["ingredient"],
"replacePattern": "<START:%tag> %value <END>",
"separator": " "
} |
If you have a text block like the following:
Code Block | ||||
---|---|---|---|---|
| ||||
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:
Code Block | ||
---|---|---|
| ||
{#} {measurement} of <START:ingredient> Water <END>
use {#} {measurement} of <START:ingredient> FLOUR <END> |