Powered by Zoomin Software. For more details please contactZoomin

Semaphore Text Mining Side Panel

Adding Evidence Rules

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

To add evidence detection, a new set of rules needs to be added to the CS instance. The easiest way to do this is to add the following configuration to the Publisher config

<bean  class="com.smartlogic.publisher.velocity.VelocityWriter" >
    <property name="rulebaseOutputDirectory" value="${results.directory}/${model.name}/velocity"/>
    <property name="useRulebaseClassDirectories" value="true"/>
    <property name="fileNameTemplate" value="FileNameTemplate.vm" />
    <property name="rulebaseTemplate" value="Evidence.vm" />
    <property name="templateDirectory" value="${config.directory}/${model.name}/templates" />
    <property name="pakFilePath" value="${results.directory}/${model.name}/pakstore/Evidence.tar.gz" />
</bean>

The FileNameTemplate.vm contains just

Evidence-${concept.defaultName}-${language.code}.xml

And Evidence.vm

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<content>
#set ($protectedIdentity = $concept.identifier.replace(":","\:"))
#set ($protectedUri = $concept.uri.toString().replace(":","\:"))
#set ($protectedRulebaseClass = $rulebaseClass.replace(":","\:"))
#set ($protectedName = $concept.defaultName.replace(":","\:"))
    <extract>
        <combine
            extract_name="Phrase" 
            extract_tags="Direct" 
            extract_group="Evidence" 
            extract_default0="id:${protectedIdentity}" 
            extract_default1="uri:${protectedUri}" 
            extract_default2="rulebaseClass:${protectedRulebaseClass}" 
            extract_default3="name:${protectedName}"
            >
            <link label="link.${rulebaseClass}.${concept.defaultName}.${language.code}.${concept.identifier}_FINAL"/>
        </combine>
    </extract>
</content>

Note this latter file contains a link to your classification rules. You may need to edit this to point to the correct link.

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