Extract by rules
Extract fields with regular expressions or the text after a label, without AI: nothing leaves the runner.
Command in the Document processing toolkit · id ooa.idp/extract_by_rules · 2 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | The document's text. | |
| Rules | Dictionary | Yes | Per field: regex (the first match, or its first group when it has one), or after (the rest of the line after a label; until gives where it stops). |
Outputs
| Output | Type | What it is |
|---|---|---|
| fields | Dictionary | Field name to value (text); fields not found are left out. |
| missing | List | Fields no rule found. |