Powered by Zoomin Software. For more details please contactZoomin

Semaphore Classification Server Rulebase Reference

LAST

  • Last Updated: May 13, 2026
  • 1 minute read
    • Semaphore
    • Documentation

The last rule filters evidence from its children based on which has the last occurrence of any text in the article.

Score calculation

Has the score of the child which has the last evidence (scaled by any weight)

Evidence calculation

The evidence is the last evidence in the document from any of the children

Attribute information

Children restrictions

Any rule other than those restricted to a specific parent

You may use the Count Attribute attribute to select the 2nd to last occurrence (count=“1”) or the 3rd to last occurrence (count=“2”) etc - whilst this syntax is slightly awkward it seemed better than having to add a second and third rule or else having a very generically named position rule which didn’t express the most common use case very clearly.

Example

The following rulebase fragment

    <last>
        <expression type="NAME" />
    </last>

would restrict to the last name in the article

This can obviously be used in a more complex construct as needed by the rulebase writer eg:-

    <last>
       <intersection>
        <sequence type="sentence" >
           <phrase data="start interesting area" />
           <skip count="5" />
        </sequence>
        <expression type="NAME" />
       </intersection>
    </last>

would find the last name in the area of interest (as established by the sequence rule)

The LAST rule was introduced in Semaphore 3.7

See Also

TitleResults for “How to create a CRG?”Also Available inAlert