To add these dictionaries to the UIMA pipeline, follow these steps: 

1. Open the CustomerComments  annotator by selecting FoodIndustry  Configurations   Annotators   CustomerComments in the browser. 

1. Select the Lexical Analysis stage. 

2. In the Dictionaries  pane, click Select . 

3. Find the dictionaries created earlier and select them. 

4. Click OK . 

5. Save  the changes. 

## Testing the UIMA pipeline with custom dictionaries 

After adding the custom dictionaries to the UIMA pipeline, you can test the new output by analyzing a test document. See 11.3.4, “Testing the UIMA pipeline and reviewing output” on page 416 for step-by-step instruction. 

## 11.3.6 Creating parsing rules 

Tip:  Try adding different words from your dictionary to your test text and check the analysis results. 

A parsing rule defines a sequence of annotations that indicates something of interest in the text. The Parsing Rules stage examines annotations created by earlier stages and checks their validity. It can also add additional meaning to the combinations of annotations. For instance, by looking for products and product defects in a sentence, it can identify a complaint. It can similarly identify products and positive attributes (tasty, favorite, delicious) to identify customer satisfaction. 

Parsing rules can: 

GLYPH<SM590000> Create new annotations. 

GLYPH<SM590000> Remove invalid annotations. 

The matching criteria of a parsing rule is defined for annotations that are created by earlier stages and can be: 

GLYPH<SM590000> Tokens such as words, punctuation, and numbers 

GLYPH<SM590000> Terms that you have defined in a custom dictionary 

GLYPH<SM590000> Annotations that are created by another parsing rule 

Preferred practice: It is always better to use dictionaries because they are easier to maintain and expand, and also better for performance. Do not try to stretch a rule to make it solve every problem. Complicated rules make maintenance difficult. It is important to keep rules short and simple. 

