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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Stabler - Lx 185/209 2003<br />

(41) With these files, we get the following sessi<strong>on</strong>: | ?- [’g5-mix’,’oracle-sics’,glco].<br />

yes<br />

| ?- computeOracle.<br />

Warning: abolish(user:nrR) - no matching predicate<br />

................:::.:.:.:.:.:.:..:..:.:.:.:.:.:.::.:.:.::.:.:.:.:::.:.::.:.::.::.::.::.::::.:<br />

yes<br />

| ?- listing(nrR).<br />

nrR([-(about),p0|_]).<br />

nrR([-(about),p1|_]).<br />

nrR([-(about),pp|_]).<br />

nrR([-(d0),d1|_]).<br />

nrR([-(d0),dp|_]).<br />

nrR([-(d0),ip|_]).<br />

nrR([-(d1),dp|_]).<br />

nrR([-(d1),ip|_]).<br />

nrR([-(dp),ip|_]).<br />

nrR([-(i1),-(dp),ip|_]).<br />

nrR([-(idea),n0|_]).<br />

nrR([-(idea),n1|_]).<br />

nrR([-(idea),np|_]).<br />

nrR([-(n0),n1|_]).<br />

nrR([-(n0),np|_]).<br />

nrR([-(n1),n1|_]).<br />

nrR([-(n1),np|_]).<br />

nrR([-(p0),p1|_]).<br />

nrR([-(p0),pp|_]).<br />

nrR([-(p1),pp|_]).<br />

nrR([-(suffice),v0|_]).<br />

nrR([-(suffice),v1|_]).<br />

nrR([-(suffice),vp|_]).<br />

nrR([-(the),d0|_]).<br />

nrR([-(the),d1|_]).<br />

nrR([-(the),dp|_]).<br />

nrR([-(the),ip|_]).<br />

nrR([-(v0),v1|_]).<br />

nrR([-(v0),vp|_]).<br />

nrR([-(v1),vp|_]).<br />

yes<br />

| ?- [the,idea,will,suffice] ? ˜ [ip].<br />

yes<br />

| ?- [the,idea,about,the,idea,will,suffice] ? ˜ [ip].<br />

yes<br />

| ?- [will,the,idea,suffice] ? ˜ [ip].<br />

no<br />

| ?- [the,idea] ? ˜ [C].<br />

C = d1 ? ;<br />

C = dp ? ;<br />

no<br />

(42) With this oracle, we can repair g3.pl to allow the left recursive rule for coordinati<strong>on</strong>, and an empty i0.<br />

The resulting file g3-lc.pl lets us recognize, for example, the ip: some penguins and most s<strong>on</strong>gs<br />

praise titus. As observed earlier, we were never able to do this before. 27<br />

(43) Thecalculati<strong>on</strong><strong>of</strong>theoraclecanstillfailtoterminate. To ensure terminati<strong>on</strong>, we need to restrict both<br />

the length <strong>of</strong> the trigger sequences, and also the complexity <strong>of</strong> the arguments (if any) associated with<br />

the categories in the sequence.<br />

93

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

Saved successfully!

Ooh no, something went wrong!