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 />

(48) We can compute the bottom-up k = 1 words <strong>of</strong> lookahead <strong>of</strong>fline:<br />

| ?- [’la-sics’].<br />

yes<br />

| ?- [’g1-lc’].<br />

yes<br />

| ?- computela.<br />

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

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

yes<br />

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

la([idea], idea).<br />

la([idea], n0).<br />

la([idea], n1).<br />

la([idea], np).<br />

la([suffice], suffice).<br />

la([suffice], v0).<br />

la([suffice], v1).<br />

la([suffice], vp).<br />

la([that], c0).<br />

la([that], c1).<br />

la([that], cp).<br />

la([that], that).<br />

la([the], d0).<br />

la([the], d1).<br />

la([the], dp).<br />

la([the], ip).<br />

la([the], the).<br />

la([will], i0).<br />

la([will], i1).<br />

la([will], will).<br />

yes<br />

| ?-<br />

(49) Adding bottom-up k-symbol lookahead to the glco recognizers with a bottom-up oracle, we have<br />

glcola(k) recognizers.<br />

For any <strong>of</strong> the GLC parsers, a language is said to be glcola(k) iff there is at most <strong>on</strong>e step that can be<br />

takenateverypointineverypro<strong>of</strong>.<br />

Obviously, when a language has genuine structural ambiguity – more than <strong>on</strong>e successful parse for<br />

some strings in the language – the language cannot be glcola(k) for any k (e.g. LL(k), LC(k), LR(k),…)<br />

In the case <strong>of</strong> an ambiguous language, though, we can c<strong>on</strong>sider whether the recogniti<strong>on</strong> <strong>of</strong> unambiguous<br />

strings is deterministic, or whether the indeterminism that is encountered is all due to global ambiguities.<br />

We return to these questi<strong>on</strong>s below.<br />

95

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

Saved successfully!

Ooh no, something went wrong!