Skip to content

Manage configurations

Steps

1

Modify your project taxonomy from the editor

Open the Taxonomy tool window.

Select a domain from the project taxonomy. Right-click the domain and select Delete node to remove it. Right-click a domain in the Taxonomy tool window and choose Edit node to modify domain ID and label.

Right-click a domain and choose Add child to create a new child domain.

Have a look at the Taxonomy tool window to see your new taxonomy structure.

2

Create extraction objects

Hover to the Project tool window and double click the `config.cr` file.

Have a look at the template model at the bottom: you can use this template for each extraction class you wish to create.

Choose a proper name for every template and for the fields you want to create in each class.

3

Create a new rules file

Hover to the Project tool window on the left of the GUI.

Right-click the rules folder. Select New > Rules File.

Write a name for the new rules file and select OK. The rules file opens up in the editor.

Tips & tricks

Load an xml taxonomy to the project

Copy your taxonomy from your XML file.

Hover to the `main.cr` file and make sure that all sample rules referring to the predefined dom1 sample domain are commented or removed, since after changing the taxonomy with a new one the dom1 domain will be missing and rules referring to it would generate an error when compiling the project.

Hover to the Project tool window, double click `taxonomy.xml` and paste the new taxonomy replacing the previous sample.

Now build the project and check the new taxonomy in the Taxonomy tool window.