Powered by Zoomin Software. For more details please contactZoomin

Semaphore Classification Server Rulebase Reference

MAX

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

Finds the maximum score of its children rules

Score calculation

Scores the maximum score of its children rules (optionally scaled by the given weight)

Evidence calculation

The evidence is the union of all its children with the maximum score

Attribute information

Children restrictions

Any rule other than those restricted to a specific parent

The WEIGHT attribute is used to scale the score. If the maximum score of the children was 50 (0.5) and weight set to 80 (0.80) the returned score will be (score * weight / 100) or 40 (0.40)

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 sample rulebase:

      <max weight="80" category="1" class="test" name="max">
        <text data="trichet" weight="60"/>
        <text data="bob" weight="80" not="1"/>
      </max>

Will return the following output

<response>
<STRUCTUREDDOCUMENT>
...
<META name="test" value="max" score="0.64"/>
</STRUCTUREDDOCUMENT>
</response>

Note the score for the max rule is 0.64 which is the rules weight of “80” applied to the maximum score of its children (0.80)

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