ch.uzh.ifi.attempto.ape
Class SyntaxBoxes

java.lang.Object
  extended by ch.uzh.ifi.attempto.ape.SyntaxBoxes

public class SyntaxBoxes
extends java.lang.Object

This class generates the colored syntax boxes in HTML notation on the basis of the syntax tree of an ACE sentence. Noun phrases are represented by blue boxes, verb phrases by yellow boxes, and (subordinated) sentences by gray boxes.

Author:
Tobias Kuhn

Method Summary
static java.lang.String getBoxesHtml(ACEParserResult parserResult)
          This method takes the syntax tree of a parsing result and generates the HTML representation of the syntax boxes showing all three types of boxes.
static java.lang.String getBoxesHtml(ACEParserResult parserResult, boolean showS, boolean showVP, boolean showNP)
          This method takes the syntax tree of a parsing result and generates the HTML representation of the syntax boxes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBoxesHtml

public static java.lang.String getBoxesHtml(ACEParserResult parserResult)
This method takes the syntax tree of a parsing result and generates the HTML representation of the syntax boxes showing all three types of boxes.

Parameters:
parserResult - The parsing result.
Returns:
The HTML representation of the syntax boxes.

getBoxesHtml

public static java.lang.String getBoxesHtml(ACEParserResult parserResult,
                                            boolean showS,
                                            boolean showVP,
                                            boolean showNP)
This method takes the syntax tree of a parsing result and generates the HTML representation of the syntax boxes. The three types of boxes can individually be switched on or off.

Parameters:
parserResult - The parsing result.
showS - true if the gray boxes for (subordinated) sentences should be shown.
showVP - true if the yellow boxes for verb phrases should be shown.
showNP - true if the blue boxes for noun phrases should be shown.
Returns:
The HTML representation of the syntax boxes.


Copyright 2008-2009, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)