Examples

Common Use Cases

1. Extract Contact Information


const result = await extractor.extract({
  text: `John Doe
123 Main St
john@example.com
(555) 123-4567`,
  template: 'contact'
});
            

2. Parse Invoice Data


const result = await extractor.extract({
  text: invoiceText,
  template: 'invoice'
});