Powered by Zoomin Software. For more details please contactZoomin

The Semaphore Fact Extraction Framework (FACTS)

EXTRACT_TAGS Attribute

  • Last Updated: August 14, 2026
  • 2 minute read
    • Semaphore
    • Documentation

Defines a name for the tagged evidence for the current rule which may then be extracted with a parent rule using the EXTRACT attribute.

The EXTRACT_TAGS attribute is very similar to the EXTRACT_NAME attribute except that instead of naming all the evidence for the rule it will only name evidence which has been tagged by some rule. In effect tagging evidence allows the rules to provide the normalised form for some evidence which is what will be extracted.

Applies to

No restriction on which rule it may be applied to. However a rule with the EXTRACT attribute set is required to extract this, or some subset of, named evidence and a TAG attribute is required for some child rule in order to provide some tagged evidence to be named.

Values

  • “XXXX” - XXXX is the name of the tags when extracted

Other attributes having special meaning for any rule with this attribute

Example

The following document:

Jean-Claude Trichet announced today a rise of 1/2 point in interest rates.
In a separate intervention the governor of the European Central Bank announced that the
institution will keep a firm handle on inflation.

Evaluated against the following rulebase fragment:

<sentence extract="1" extract_tags="tagged_info" >
    <any tag="European Central Bank Governor" >
        <text data="Jean-Claude Trichet" />
        <near data="governor European Central Bank" count="2" />
    </any>
    <any extract_name="monetary instrument" >
        <text data="interest rate" stem="1" />
        <text data="inflation" />
    </any>
</sentence>

Will return:

....
<META name="monetary instrument" value="inflation" score="1.00"/>
<META name="monetary instrument" value="interest rates" score="1.00"/>
<META name="tagged_info" value="European Central Bank Governor" score="1.00"/>
....

In this example we extract “Jean-Claude Trichet” via the tag which has been applied to his name whilst the “monetry instrument” is extracting the raw evidence using the EXTRACT_NAME attribute

See Also

Alert