Skip to main content

Module fields

Module fields 

Source

Functions§

analyse
Analyze text and return JSON with extracted fields.
extract_amounts
Extract currency amounts with symbols ($ € £ ₹ ¥) or codes (USD EUR GBP INR JPY). Returns (amount, currency_code) pairs.
extract_dates
Extract ISO 8601 dates (YYYY-MM-DD) and DD Mon YYYY dates from text. Invalid calendar dates (e.g. 2027-99-99) are rejected — only verifiable dates are returned (C4).
extract_kind
Extract document kind from keywords. Returns one of: “warranty”, “receipt”, “invoice”, “contract”, or None.