Lehner's Prolog Tree Drawing Program
If you have any comments about these pages, please let us know. Should we place more of these pages on line? Do you benefit from these pages? If you are a student at NYU, you may help in developing these pages, see the HTML Gesellschaft. Your ideas and comments will lead to modifications and improvements.
TREE DRAWING PRETTY PRINTERS:
COMPARISON || NYU VANILLA || LEHNER || KOSTKO || VINCENT
Note from Christoph Lehner
Christoph Lehner (Mail) has a tree drawing program (SWI Prolog version) that works in Prolog to yield a tree that can be viewed on an ascii terminal or sent to a disk file and printed.
This program produces a phrase marker that can be displayed on a screen or written to a disk file that can be incoporated into a word processor document or a WWW page, see Workbook 2.2.. For the sentence The man sees in the house it produces this tree.
The input of the tree drawing program is a standard prolog structure representing a linguistic syntax tree (hint: A.Colmerauer - the inventor of Prolog - uses to call Prolog structures 'trees', anyways). A typical call yielding the graphical output shown above is:
The structure is normally produced automatically by a syntactic parser. It is not easy to read. That's what the tree drawing program is meant for, i.e. graphically displaying structures like the one shown.
If you load the program chris.pl it will display sample trees, see below. Christoph's program can be used to view the output of the Prolog parsers on this site. By routing the screen to a file, one can obtain trees that may be printed and incorporated into documents.
If you have trouble using any of these program, or if you would like more documentation, please let us know email@example.com.