<entry>

Element: entry

Child Elements: <headword>, <synonym>

Description: An entry represents an individual value that an entity matches. The entry has one or more attributes such as the actual phrase that returns (the headword), the case, and so on.

Example:<entry headword="mat" score=".3" case="inherited" debug="inherited">

Attribute

Value

Default

Description

headword

#CDATA

 

The dictionary entry. You can specify headword as either an attribute or a subelement, but you must not use both.

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.

case

sensitive

insensitive

inherited

inherited

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

debug

true

false

inherited

inherited

Displays verbose information for the entry element during compilation. The value inherited accepts the debug mode of the <entity> parent.