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

(33) GLC parsing with an oracle is defined so that whenever a completed category is placed <strong>on</strong> the stack,<br />

the resulting sequence <strong>of</strong> completed categories <strong>on</strong> the stack must be a beginning <strong>of</strong> the most recently<br />

predicted category.<br />

Let’s say that a sequence C is reducible iff the sequence C is the c<strong>on</strong>catenati<strong>on</strong> <strong>of</strong> two sequences<br />

C = C1C2 where<br />

a. C1 is a sequence ¬pi,...,¬p1 <strong>of</strong> 0 ≤ i completed (i.e. negated) elements<br />

b. C2 begins with a predicted (i.e. n<strong>on</strong>-negated) element p, and<br />

c. p1,...,pi is a beginning <strong>of</strong> p<br />

(34) GLC parsing with an oracle:<br />

G, Γ ,S ⊢ (?-¬qi,...,¬q1,C)<br />

G, Γ ,S ⊢ (?-qi+1,...,qn, ¬p, C)<br />

[glc]<br />

if (p:-q1,...,qi][q i+1,...qn) ∈ Γ<br />

and ¬p, C is reducible<br />

G, Γ ,S ⊢ (?-¬qi,...,¬q1,p,C) [glc-complete] if (p:-q1,...,qi][q i+1,...qn) ∈ Γ<br />

G, Γ ,S ⊢ (?-qi+1,...,qn,C)<br />

G, Γ ,wS ⊢ (?-C)<br />

G, Γ ,S ⊢ (?-¬w,C)<br />

[shift] if ¬w,C is reducible<br />

G, Γ ,wS ⊢ (?-w,C) [shift-complete] =scan<br />

G, Γ ,S ⊢ (?-C)<br />

(35) This scheme subsumes almost everything covered up to this point: Prolog is an instance <strong>of</strong> this scheme<br />

in which every trigger is empty and the sequence <strong>of</strong> available “resources” is empty; LL, LR and LC are<br />

obtained by setting the triggers at the left edge, right edge, and <strong>on</strong>e symbol in, <strong>on</strong> the right side <strong>of</strong> each<br />

rule.<br />

(36) To implement GLC parsing with this oracle, we precalculate the beginnings <strong>of</strong> every category. In effect,<br />

we want to find every theorem <strong>of</strong> the logic given above.<br />

Notice that this kind <strong>of</strong> logic can allow infinitely many derivati<strong>on</strong>s.<br />

90

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

Saved successfully!

Ooh no, something went wrong!