Skip to main content

Docparser Visual Cropping Tool & Rules Editor

An overview of our visual cropping tool. 

Overview of the new Visual Cropping Tool in Docparser

Introduction

Our new visual cropping tool was built to make rule creation and editing less confusing. For most use cases, we expect this to be true; however, advanced parsers may find our existing editor better suited. 

Compatibility

The Visual Cropping/Rule Tool and our Legacy Rules Tool are fully backward- and forward-compatible. This means you can create in one and edit in another and go back and forth as needed. There is no harm in experimenting with it. Just use the tool that works best for you.

Enable Visual Cropping Tool

You can enable this now within your settings area — go to Settings > Parsing Rules User Interface and select the option for Visual Cropping Tool and Rules Editor.

 

Change Working Document

To change the document displayed within the visual rules editor use the Change Sample Document button.

 

Once clicked you get a list of your documents and just pick the one you wish to view within the editor.

Document list for selecting a sample document in the visual editor

Parsing Rules

Your parsing rules are shown on the right. They are shown in the order in which they were created. You can drag and drop rules to reorder them.

Sidebar displaying ordered list of parsing rules in the visual editor

Rule Numbers

Note that rules related to the visual cropping areas will correspond to the number shown on the edge of the crop box. For example, rule #3 PO Number here below:

Crop box highlighting rule number associated with PO Number field

Clicking within the crop box or selecting the rule on the right will highlight both areas to make this relationship clearer.

Note: Text-based rules do not show in the document on the left as they do not have an associated crop box.

Rule Colors

Green rules are producing data and likely are good to go. Red rules need more work as the current result is empty. To fix click on the edit button to work on that rule to get the expected output.

Example of color-coded rules: green for valid data, red for incomplete

Renaming Rules

Simply click on the name and type out your new name.

Click to rename a parsing rule in the editor

And then click on Save All Parsing Rules Button

Save All Parsing Rules button for saving changes

Editing Rules

Click on the edit button to the right of the rule name to edit your rule.

Edit button next to a rule for editing within the visual interface

Duplicating Rules

Click on the duplicate button and then name your new rule.

Duplicate button for copying a rule in the visual editor

\Note: You can also copy this rule to another parser if you wish by picking a different parser than the current one (selected by default).

Option to copy duplicated rule to another parser

Deleting Rules

Click on the delete button to delete your rule.

Delete button for removing a parsing rule

You can easily navigate to other pages to set up rules by using the page menu on the bottom right.

Page navigation menu at the bottom right of the editor

Create New Rule

Use the Create New Rule to create a new rule.

Create New Rule button in the visual cropping tool

After clicking you are presented with a variety of rules to choose from along with some tools on the top to refine your choices.

Filter by Category

Pick a category to only see rules for that type of parser.

Filter by Category option for narrowing down rule types

Search by Keywords

You can also search by a keyword to see all of the rules that match.

Search by keyword bar to find relevant parsing rules

Combining Both

You can also combine these together to see rules in category that match your search term.

Combining category and keyword search to filter rules effectively

Adding Filters

To further refine your output, you can add filters to your rules. We have filters for fields (Text Filter) and tabled data (Table Filter). When you click on a filter button it will pull up a menu of choices with embedded subsections to pick from.

Text Filter

Text filter options for refining output fields

Table Filter

Table filter interface to refine extracted table data

Saving Rules

To save any new rules or changes to existing rules (including a new name of a rule) just click on the Save All Parsing Rules button.

Save All Parsing Rules button for saving all rule changes

When you save a rule, you are presented with the following choice:

Prompt window for next steps after saving rules: Add, Export, or Continue Editing

Add New Rule

This will take you to the Add New Rule screen.

Prepare for Export

This will take you out of the rules editor and reparse the documents automatically for you.

Note: Anytime you change your parser rules (or filters) you will need to reparse your documents to apply your new parser logic to the data output.

Continue Editing

This puts you back to where you were in the rules editor in case you forgot to do something.

Was this article helpful?
5 out of 6 found this helpful

Still stuck?

Send us your parser name and a sample document.

Submit a request