20.07.2013 Views

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Stabler - Lx 185/209 2003<br />

This pretty printer is better than nothing, but really, we can do better!<br />

This is the kind <strong>of</strong> stuff people had to look at when computers wrote their output to electric typewriters.<br />

Wecandomuchbetternow.<br />

(30) There are various graphical tools that can present your tree in a much more readable format. I will<br />

describe using the Tcl/Tk interface which sicstus provides, but I also have tools for drawing trees from<br />

prolog through xfig, dot, TeX, and some others.<br />

| ?- [tdp,g3,wish_tree].<br />

Yes<br />

| ?- ([titus,and,lavinia,and,the,penguins,praise,most,s<strong>on</strong>gs] ?˜ [ip]@[T]),wish_tree(T).<br />

T = ip/[dp(1,p,nom)/[dp(3,s,nom)/[titus/[]],coord(dp(_A,p,nom))/[and/[],dp(_A,p,nom)/[dp(...)/[...],coord(...)/[...|...]]]],i1(1,p)/[i0/[],vp(1,p)/[v1(1,p)/[v0(...)/[..<br />

Yes<br />

But what appears <strong>on</strong> your screen will be something like this:<br />

Not the M<strong>on</strong>a Lisa, but this is <strong>on</strong>ly week 4. Notice that with this tool, carefully inspecting the trees<br />

becomesmuchlesstedious!<br />

49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!