<pattern>
Element: pattern
Child Elements: none
Description: Defines a pattern used for matching.
Example: <pattern score=".1" case="insensitive" replace="replacechars" insert_before="prefix_" insert_after="_suffix">cat</pattern>
Attribute |
Value |
Default |
Description |
---|---|---|---|
|
<actual pattern> |
A value is required. |
|
score
|
>= 0 |
1 |
A score to use to assign any weightings to the matches.
You can use these weightings for a variety of purposes:
When there are multiple scores, Eduction multiplies them together. For example, if a match on an entity has a score of If you specify a minimum score during extraction, Eduction extracts only those matches with a sufficiently high score. You can also display the exact scores of any match during extraction. NOTE: OpenText recommends that you set entity and pattern scores to be no lower than |
case
|
sensitive insensitive inherited |
inherited |
Determines whether a match is case sensitive. The value inherited accepts the case matching mode of the grammars parent. |
replace
|
<text to replace the match> |
<no default> |
Eduction replaces the text of the match with the specified text. |
insert_before
|
<text to insert before the match> |
<no default> |
Eduction inserts the specified text before the text of the match. |
insert_after
|
<text to insert after the match> |
<no default> |
Eduction inserts the specified text after the text of the match. |
debug
|
true false inherited |
inherited |
Displays verbose information for the pattern element during compilation. The value inherited accepts the debug mode of the <entity> parent. |