The Sentence Interpreter

The Sentence Interpreter view allows sentences to be tested against a grammar, showing the derivation tree (how rules are used to generate the sentence):

The view displays the parse tree of the sentence if it can be parsed by the grammar. Double-click on any non-root node in the tree reveals the location of the corresponding rule reference or token in the originating grammar.

The tree can be moved by dragging it: press the left button and keep it down while moving the mouse around. To reset the position of the tree, double-click anywhere except on tree nodes.

The Execute tags check box can be unchecked if it is known that the language for the semantic tags is not fully supported by the environment.

If there are multiple parses for a given sentence, they is indicated just above the parse tree:

The currently selected parse is shown in square brackets. Clicking on one of the other parses switches the parse tree viewer to the selected parse.

The table (on the right of the parse tree) shows the semantic interpretation of the sentence. 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 in place of the table.


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