<headword>

Element: headword

Child Elements: none

Description: A headword is the exact sequence of characters that produce an entity match.

Example: See example in <entry>.

Attribute

Value

Default

Description

<element contents>

<the headword>

 

The headword value.

NOTE: If the entry element contains a headword attribute, it cannot have a headword subelement.

case

sensitive

insensitive

inherited

inherited

Determines whether a match is case sensitive. The value inherited accepts the case matching mode of the <entry> parent.

score

>= 0

1

A score to use to assign any weightings to the matches.

  • A score of 1 is the default score.
  • A score of 0 always excludes the matching tag from the results. You can use this value to specify exceptions to grammar rules.

You can use these weightings for a variety of purposes:

  • They can represent the confidence you have in the accuracy of the match (where a value of 1 represents certainty, and lower values represent lesser confidence).
  • They can represent the importance of a match. For example, in the sentiment grammars the score represents the strength of the sentiment.

When there are multiple scores, Eduction multiplies them together. For example, if a match on an entity has a score of 1.5, and you use that entity in another entity that has a score of 0.4, the resulting score is 0.6.

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: Micro Focus recommends that you set entity and pattern scores to be no lower than 0.01 and no higher than 100.