The Semantics Stepper

The Semantics Stepper view allows all steps taken to parse a sentence to be executed one at a time and displays the context of execution of each step:

Starting the execution

When a valid sentence has been entered in the Test Data view, the Start button of the view's toolbar becomes enabled:

The Current Step field displays the current execution step, as well as the words matched so far by the previous steps. To execute the next parsing step, press the Execute button of the view's toolbar:

To restart the execution, first press the Stop button of the view's toolbar:

and then the Start button again.

Active rules

The view shows two main components: the list of active rules, and the semantic context of the active rule. Each semantic tag is executed in the context of the active rule. The stepper updates the context before and after the execution of each semantic tag (inside a semantic tag, NuGram IDE cannot single-step individual statements). Also, when a new rule is entered, a new empty context is created.

In the semantic context table, each line gives the name of a semantic key and its value, in JSON format. If the semantic interpretation is a string (like when using the semantics/1.0-literal tag format, the string is displayed rather than the table.


Copyright © 2007,2008,2009,2010,2011 Nu Echo Inc.