prettyPrintnd
We have updated the crazy number of prettyPrint functions we have to include one that works with our current style of trees. This output does not conform to our readTree() function so it may not be used as input for our programs, but it makes it much easier for a human parser. We took precautions to try and make these trees not run off the edge of the screen too quickly.
uglyPrint()
CP @[0](~,~,CP CP[2](~,who DPwh[1](Cb Cb[0](~,that C[1](Y Y[0](~,does I[1](VP VP[0](~,like Vt[1](t DPt[0](~,~,~),~,~),~),~,~),IP IP[0](~,Carol DP[1](Ib Ib[0](~,~,~),~,~),~)),~,~),Cb Cb[1](~,does I[1](Y Y[0](~,t2 It[1](VP VP[0](~,think Vb[1](Cb Cb[0](~,~,~),~,~),~),~,~),IP IP[0](~,Alice DP[1](Ib Ib[0](~,~,~),~,~),~)),~,~),~)),~,~),~))
prettyPrint()
CP @
(~,
~,
CP CP
| (~,
| who DPwh
| | (Cb Cb
| | | (~,
| | | that C
| | | | (Y Y
| | | | | (~,
| | | | | does I
| | | | | | (VP VP
| | | | | | | (~,
| | | | | | | like Vt
| | | | | | | | (t DPt
| | | | | | | | | (~,
| | | | | | | | | ~,
| | | | | | | | | ~),
| | | | | | | | ~,
| | | | | | | | ~),
| | | | | | | ~),
| | | | | | ~,
| | | | | | ~),
| | | | | IP IP
| | | | | | (~,
| | | | | | Carol DP
| | | | | | | (Ib Ib
| | | | | | | | (~,
| | | | | | | | ~,
| | | | | | | | ~),
| | | | | | | ~,
| | | | | | | ~),
| | | | | | ~)
| | | | | ),
| | | | ~,
| | | | ~),
| | | Cb Cb
| | | | (~,
| | | | does I
| | | | | (Y Y
| | | | | | (~,
| | | | | | t2 It
| | | | | | | (VP VP
| | | | | | | | (~,
| | | | | | | | think Vb
| | | | | | | | | (Cb Cb
| | | | | | | | | | (~,
| | | | | | | | | | ~,
| | | | | | | | | | ~),
| | | | | | | | | ~,
| | | | | | | | | ~),
| | | | | | | | ~),
| | | | | | | ~,
| | | | | | | ~),
| | | | | | IP IP
| | | | | | | (~,
| | | | | | | Alice DP
| | | | | | | | (Ib Ib
| | | | | | | | | (~,
| | | | | | | | | ~,
| | | | | | | | | ~),
| | | | | | | | ~,
| | | | | | | | ~),
| | | | | | | ~)
| | | | | | ),
| | | | | ~,
| | | | | ~),
| | | | ~)
| | | ),
| | ~,
| | ~),
| ~)
)
Posted by lemanal at August 4, 2004 04:10 PM