Filter Tool Demo

The goal of this demo is to show how a filter in the CLaRK system can be created.

Note that filters are not used independently, they are used by the other tools in the system.

Filters work over token categories and/or elements.

Demo : Filter for spaces

Our goal here is to create a filter which discards all spaces. It can be used when a grammar over a pure text is applied.

In order to create a filter you have to perform the following steps:

  1. Open the dialog of the Filters tool from the menu item Definitions.
  2. Click on New button. A new dialog appears in which the user must specify the name of the filter. In the text box Name write no-blank.
  3. Select MixedWord tokenizer from the combo box with all tokenizers.
  4. From the list Choose from with token categories select SPACE. These are categories of the selected tokenizer and of its parent tokenizer.
  5. Press => button or double click over a category - in order to add the selected category to the filter. More than one categories can be added to a filter - they are visible in Token Types list.
  6. Press Save button in order to save the filter in the system.