Capture Attribute
- Last Updated: May 13, 2026
- 1 minute read
- Semaphore
- Documentation
// Available since Semaphore 3.5 //
// Deprecated Semaphore 4.0 //
This attribute is retained purely for backward compatibility purposes - the newer EXTRACT and EXTRACT_NAME attributes replace this attribute since they allow the capture to be named and multiple named captures to be extracted at once (and optionally grouped)
Specifies that any evidence found for the rule is to be considerd as possible output for templated category rule firings. Once some evidence is captured if that particular piece of evidence passes any filter rules higher up the tree then it will be output as the value of the fired category rule.
Applies to
Values
- “1” - Contents are captured
- “0” - default
Example
The following:
<category class="PERSON" template="1">
<phrase capture="1" >
<any data="Mr Mrs Miss Ms Dr Rev" />
<skip count="2" />
<text data="^*"/>
</phrase>
</category>
Applied to the document fragment:
Mr Fred Flintstone was married today to Ms Wilma Slaghoople.
Would return the following:
...
<META NAME="PERSON" VALUE="Mr Fred Flintstone" score="1.00"/>
<META NAME="PERSON" VALUE="Ms Wilma Slaghoople" score="1.00" />
...