Kostko's Tree Drawing Program DOS/Windows

http://www.nyu.edu/pages/linguistics/workbook/kostdoc.html

Prof. Ray C. Dougherty
New York University | Linguistics Department
GENERAL || RESEARCH || COURSES || WORKBOOK|| FIRST DOT

TREE DRAWING PRETTY PRINTERS:
COMPARISON || NYU VANILLA || LEHNER || KOSTKO || VINCENT


The Program Runs under DOS or Windows.

Oleg Kostko's tree drawing program works in on an IBM PC under Windows or DOS, according to the readme.txt. It is in fact a DOS program that opens a window. It produces diagrams like the following. It has one constraint: Node labels must be one or two characters. That is, you can have N and NP, but not NOUN. If you node labels are too big, they print out at random places in the tree diagram. Notice the small black box in the tree for "The boy sees the girl." This is there because one of the node labels was "noun".


The Input to the Program is a File of Labeled Bracketings.

Basically the program reads labeled bracketings in a file like the following. This is a file called example1.

(s (np (d the)(n woman))(vp (v sees)(pp (p in)(np (d the)(n house))))
(s (np (d the)(n boy))(vp (v sees)(np (d the)(n girl))))
(s (np (d the)(n boy))(vp (v knows)(s (np (d the)(n girl))(vp (au will)(v bring)(np (d a)(n book))))))

The program reads in a file of labeled bracketings. Each labeled bracketing is one line. The labeled bracketings are separated by a carriage return. All programs for beginners on this site obey these constraints. On your web browser, the above examples undoubtedly run off the right hand side of the page. This is because they contain no carriage returns.


The Program Output is a Bitmap File: XXX.bmp.

After the program has read in the file of labeled bracketings, you can see the labeled bracketings. You place the arrow on the one you want by using the up/down arrow keys or your mouse. After you select a sentence, you move to the button bar and click on Tree, or, you simply type T.

The program will draw the tree on the screen. The tree can be rather huge. In this case, your screen will only see a part of it. You can move the screen around (by scrolling) to see the rest of the tree.

This is all much easier to do than it might sound.

If you want a copy of the tree, then you move to the button bar and click Save, or type S. The machine will prompt you for a name of a file. Suppose you type in "Treeone". Then the program saves the picture of a PM on the screen to a file called "Treeone.bmp." This is the windows standard graphic file and can be printed and copied into any drawing or paint program. Word and WordPerfect will allow you to insert it as a figure.



This is Your Screen When Running the Program.







You Have to Download, Unzip, and Install the Program.

Using it is simplicity itself. You have do downloaded the program (kostko.zip) and placed it into the directory (kostko.d, or anywhere). Then you unzip the file using an unzip utility like pkunzip. The file that does the drawing is called kostko.exe.