Skip to main content

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​

InputTypeRequiredDefaultWhat it is
TextStringYesThe document's text.
RulesDictionaryYesPer 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​

OutputTypeWhat it is
fieldsDictionaryField name to value (text); fields not found are left out.
missingListFields no rule found.