Taxonomy Anchor
- Last Updated: May 29, 2026
- 2 minute read
- Semaphore
- Documentation
Summary of usage
Where the anchor we want to use is a concept that is coming from a taxonomy. That concept will have a preferred label, but it may also have any number of alternative labels.
A Taxonomy Anchor is an anchor that uses concepts arranged hierarchically in taxonomies.
A taxonomy anchor can either use all of the concepts in a taxonomy, from the concept being pointed at and all child concepts, or it can use only the concept in the taxonomy being pointed at. We can point at any concept in a taxonomy. These taxonomies can also be linked-in to the model from external models. In this way, we can link in very large models and taxonomies, and only use the bits of them that we want to for fact extraction or context anchoring.
Exemplification
The TTL format of an example model can be found here: NearUnorderedAcrossPhrasesInParagraph.TaxonomyAnchor.multipleTaxonomiesAndConcepts.restrictClasses
If you wish to test, you will need to:
- create a new model and then import the test TTL model file into it
- copy and paste the content text from the model’s associated test into DA and classify
Testing this model with:
this content:
Eat ham. Choose Wine.
gives this response:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<STRUCTUREDDOCUMENT>
<META name="Type" value="TEXT (4003)"/>
<SYSTEM name="DeterminedLanguage" value="english"/>
<SYSTEM name="LanguageGuessed" value="no"/>
</STRUCTUREDDOCUMENT>
</response>
this content:
Eat Apple. Choose Wine.
gives this response:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<STRUCTUREDDOCUMENT>
<META name="Type" value="TEXT (4003)"/>
<SYSTEM name="DeterminedLanguage" value="english"/>
<SYSTEM name="LanguageGuessed" value="no"/>
<META name="DocumentType" value="Doc" score="1.00"/>
<META name="Mentioned Food" value="Wine" score="1.00"/>
</STRUCTUREDDOCUMENT>
</response>
this content:
Do not eat Rat Poison. Choose Wine.
gives this response:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<STRUCTUREDDOCUMENT>
<META name="Type" value="TEXT (4003)"/>
<SYSTEM name="DeterminedLanguage" value="english"/>
<SYSTEM name="LanguageGuessed" value="no"/>
<META name="DocumentType" value="Doc" score="1.00"/>
<META name="Mentioned Food" value="Wine" score="1.00"/>
</STRUCTUREDDOCUMENT>
</response>
Taxonomy Anchor Properties
Mandatory hierarchical relationships
| Label | Range | Constraints |
|---|---|---|
| anchor in | locations | one or more allowed |
| not anchor in | locations | one or more allowed |
| optional anchor in | locations | one or more allowed |
Optional hierarchical relationships
| Label | Range | Constraints |
|---|---|---|
| (none) |
Mandatory associative relationships
| Label | Range | Constraints |
|---|---|---|
| anchor using concept | Concept | only one allowed |
| anchor using taxonomy | Concept | only one allowed |
Optional associative relationships
| Label | Range | Constraints |
|---|---|---|
| location | locations | 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 |
|---|---|---|
| field | String | only one allowed |
| debug | Boolean | only one allowed |