|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.uzh.ifi.attempto.ape.SyntaxBoxes
public class SyntaxBoxes
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.
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 |
---|
public static java.lang.String getBoxesHtml(ACEParserResult parserResult)
parserResult
- The parsing result.
public static java.lang.String getBoxesHtml(ACEParserResult parserResult, boolean showS, boolean showVP, boolean showNP)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |