CCG Markup Renderer

This page produces an HTML-based display of a CCG derivation specified with CCG Markup. It also provides machine-readable data structures in JSON.

Caveat: This tool does not check the details of the derivation for well-formedness. (E.g., it is not required to be a tree, and no interpretation of the categories, semantics, or combinators is performed.)


  • Display words at top bottom

HTML Visualization

JSON

Three JSON alternatives are provided. They contain equivalent information but are structured differently.

Every constituent is associated with a unique index, stored under "i". A constituent’s "name" is the substring of the sentence that it spans. In the second and third alternatives, constituents refer to other constituents by index.

Tree

This captures constituency via nesting, forming a tree structure. It should only be used if the derivation forms a full tree over the sentence.


  	

Flat List

This structures the derivation as a list of constituents. They are ordered according to the input markup.


  	

Table

This organizes the constituents into rows for rendering in a table.