Skip to main content
A Method object defines how to expand out from an Anchor line and extract target data. The following methods are available in Field objects. For a list of methods, see Methods. Parameters
Examples

Parameters

The following global parameters available to all methods:

Examples

Sort Lines example

PROBLEM In the following example, the handwritten text “Nash” is slightly taller than the text “Steve”, so Sensible interprets “Nash” as preceding “Steve” (reversing the order interpreted by a human reader) and outputs "Nash Steve" as the name: Click to enlarge SOLUTION To reliably capture the first and last name in their left-to-right order, set "sortLines": "readingOrderLeftToRight". Config
JSON
Example document The following image shows the example document used with this example config: Click to enlarge To run this example, verify the document type uses Google OCR (click the gear icon for the Document Type and select Google): Click to enlarge Output
JSON

Type Filters example

The following example shows using the Type Filters parameter to extract delivery notes from a box. Config
JSON
Example document
The following image shows the example document used with this example config:
Click to enlarge Output
JSON

X Range Filter example

In combination with the Document Range method, the X Range Filter parameter defines a “column” that’s bounded at the top and bottom by text. The following image shows using this parameter to extract a “cell” of text: Click to enlarge In this example, the X Range Filter parameter is an alternative to:
  • The Document Range method without the X Range Filter parameter. Without the parameter, this method extracts unwanted information such as the address of the importer.
  • The Fixed Table method. This method doesn’t recognize the table’s formatting.
Alternatives to using the X Range Filter parameter in this example include:
  • The Text Table method with "detectMultipleLinesPerRow": true configured.
  • LLM-based methods, such as the NLP Table method.
Try out this example in the Sensible app using the following document and config: This example uses the following config:
JSON