Operates On: Every lexical Item in the graph.
Include Page | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Saga_config_stagecode | ||||||
---|---|---|---|---|---|---|
| ||||||
"name": "JsonProducer", "onlyEntities": true, "queueTimeout": 10, "queueRetries": 1 |
If you have a text block like the following:
Code Block | ||||
---|---|---|---|---|
| ||||
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):
Code Block | ||
---|---|---|
| ||
"entities":[{ "text":"300 ml", "value":[ { "value":"300", "entity":"#" }, { "value":"mililiters", "entity":"unit" } ], "entity":"measurement", "startPos":0, "endPos":6 }] |
or the following (if onlyEntities = false):
Code Block | ||
---|---|---|
| ||
"tokens":[ { "text":"300 ml", "value":[ { "value":"300", "entity":"#" }, { "value":"mililiters", "entity":"unit" } ], "entity":"measurement", "startPos":0, "endPos":6 }, { "text":"of", "startPos":7, "endPos":9 }, { "text":"water", "startPos":10, "endPos":15 } ] |