Hierarchical Entity Support
The Mix Testing Tool provides support for how hierarchical entities are represented.
- If the
output_full_entity_hierarchy
parameter in thenlu
portion ofconfig.json
is set totrue
, hierarchical entities (those defined via anisA
orhasA
relationship) will be output differently. This parameter's default value isfalse
, in which case the format will be output according to the "Simplified Entity Hierarchy" view. - The tool makes a distinction between custom entities and built-in entities (such as
nuance_CALENDARX
andnuance_NUMBER
). In general, built-in entities are displayed in the full hierarchy view and suppressed in the simplified view (unless it is neccesary to show them, such as when a built-in entity is by itself at the top level or a built-in entity is directly underneath a logical operator). - See the table below for examples in both the full entity hierarchy view and the simplified view.
Entity Relationship | Show or Hide Predefined Entities in Simplified View | Full Entity Hierarchy | Simplified Entity Hierarchy |
---|---|---|---|
Custom Entity isA Predefined Entity | Hide | amount:nuance_NUMBER | amount |
Logical Operator over Custom Entity | N/A | AND:topping | AND:topping |
Custom Entity over Logical Operator over Custom Entity | N/A | pizza:AND:topping | pizza:AND:topping |
Custom Entity over Logical Operator over Predefined Entity | Show | when:OR:nuance_CALENDARX | when:OR:nuance_CALENDARX |
Logical Operator over Predefined Entity | Show | AND:nuance_NUMBER | AND:nuance_NUMBER |
Logical Operator over Custom Entity isA Predefined Entity | Hide | AND:amount:nuance_NUMBER | AND:amount |
Custom Entity isA Custom Entity | N/A | waypoint:destination | waypoint:destination |
Predefined Entity at Top Level | Show | nuance_CALENDARX | nuance_CALENDARX |