You can configure parsing rules that are based on sample patterns of text.
Before you create parsing rules, you must create a parsing rules database and include the compiled JAR file in the parsing rules stage of your UIMA pipeline. You can then analyze the sample text that contains the patterns to use for the basis of the rules. After the sample text is analyzed by ICA Studio, the pattern of annotations that represent the selected text is displayed in a tree format. You can modify the text pattern for the rule to match, such as generalizing the pattern to match similar occurrences of the concept, and then define one or more annotations to create when matching text is found in the document. After you add the rule to the database, rebuild the parsing rules file.
Alternatively, you can manually add annotations to a parsing rule by using the Add Annotation option. Using this approach, you can create a parsing rule without dragging any sample text. For example, this approach might be an easier way to create rules when the exact pattern that you want to match is not available in the text.
To create parsing rules: