Powered by Zoomin Software. For more details please contactZoomin

The Semaphore Fact Extraction Framework (FACTS)

NO TITLE FOUND

  • Last Updated: October 30, 2026
  • 4 minute read
    • Semaphore
    • Documentation
| | document-identifying document anchor | [Document Anchor](document_anchor.md) | one or more allowed | | | OR | | | document-identifying document fact | [Document Fact](document_fact.md) | at least one required |

Optional hierarchical relationships

Label Range Constraints
document fact in identified document Document Fact one or more allowed
not document-identifying document metadata Document Fact one or more allowed

Mandatory associative relationships

Label Range Constraints
(none)

Optional associative relationships

Label Range Constraints
expresses content type Content Type only one allowed
depended on by document type Document Type one or more allowed
depends on document type Document Type one or more allowed
precluded by document type Document Type one or more allowed
precludes document type Document Type one or more allowed

Mandatory alternative labels

Label Range Constraints
(none)

Optional alternative labels

Label Range Constraints
(none)

Mandatory metadata

Label Range Constraints
(none)

Optional metadata

Label Range Constraints
Document Type as top group Boolean only one allowed
return model name as prefix Boolean only one allowed

Associated rulebase template: DocumentType.vm

Precluding Document Types

// Modelled by associative relationship “precludes document type” and its inverse “precluded by document type” – depending on which Document Type is precluding which //

By default, all Documents Types will be looked for. But, if desired, Documents Types can preclude one another. That is, if two Documents Types are identified, due to some issue with how they are fingerprinted, then we can select which of them should return any Document Facts found.

Fingerprinting Documents Types

// Modelled by hierarchical relationship “document-identifying document fact” and its inverse “document-identifying document fact in” //

Usually, documents are “fingerprinted”; that is, identified somehow as being some Document Type. All Document Facts require that the Document Type is identified. If it is not, then no Document Facts (facts) will be returned. Usually, we model one Document Fact as being the one responsible for identifying the Document Type (the “fact” it found, the one that identified the Document Type, we are usually not that interested in knowing – even though it is always returned by the framework anyway).

However, sometimes we either do not have document templates that require special Document Facts to accurately extract the fact we want, and that we want to treat all document templates equally. To do that, what we can do is make the Document Facts not only extract the facts we want, but, if they do that, then they self-identify the Document Type also; that Document Type will not map to any document template in the organization, just to “all and any document”.

If a Document Fact is modelled by using the “document fact in identified document” then it will only be returned if it is found along with at least one other Document Fact that was modelled with the “document-identifying document fact” relationship.

For a Document Fact to be returned, you either have to define it using the:

  1. “document-identifying document fact” relationship, in which case, its being returned depends on no other Document Fact being found, just itself being found.
  2. “document fact in identified document” relationship, in which case, its being returned depends on at least one other Document Fact being found, one that has been modelled using the “document-identifying document fact” relationship.

Every Document Type must have at least one Document Fact that relates to it using either “document-identifying document fact” or “document fact in identified document”.

A Document Type expresses a Content Type

// Modelled by associative relationship “expresses content type” and its inverse “expresses content type for” //

A Content Type is independent of the actual document template (type) that that is used to carry the information for the Content Type in question. For fact extraction, we do require the document template, and an understanding of its textual patterns, to be able to extract facts from it. There may be several such document templates for any one Content Type. What we can do, if we care to (and not all projects will require this), is say that all of our Document Types “express” a Content Type, which you can add to the framework as a concept.

There might be several Documents Types in any corpus that nevertheless all express a common Content Type. A Content Type might be Press Release, but a particular Document Type might be “Human Resource’s Press Release”.

A Document Type can express more than one Content Type.

A Document Type may know Document Facts

// Modelled by hierarchical relationship “document fact in identified document” and its inverse “document fact in identified document in” //

Once any Document Type is identified, then you can model the other Document Facts you are interested in returning. If the fingerprinting you have set up with the single Document Fact suffices, then you do not have to use any more identifying Document Facts, and simply model your sought for Document Facts using the standard Document Fact relationship “document fact in identified document”.

Alert