Computational Linguistics: Syntax I
Raffaella Bernardi e-mail: raffaella.bernardi@unitn.it
Contents First Last Prev Next ◭
Computational Linguistics: Syntax I Raffaella Bernardi e-mail: - - PowerPoint PPT Presentation
Computational Linguistics: Syntax I Raffaella Bernardi e-mail: raffaella.bernardi@unitn.it Contents First Last Prev Next Contents 1 SCHEDULE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
V ∗ denotes the set of all strings formed over the alphabet V . A∗ denotes the set of all strings
Examples For example, let V = {a, b, c}. Are {aab} and {cc} RL? Yes, by 2. since aab and cc are members of V ∗. {aab, cc}? Yes, by 3, union. {aabcc}? Contents First Last Prev Next ◭
Yes, by 4, concatenation. Likewise, by 5 {aab}∗ {cc}∗ are regular languages. Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
T | S ⇒∗ w}.
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Sara wears the new dress, s is in the language. Try to prove it your self. (1) new dress, n ∈ L(G) because n → adj n ∈ Rules, new, adj ∈ L(G) (LEX), and dress, n ∈ L(G) (LEX) (2) the new dress, np ∈ L(G) because np → det n ∈ Rules, the, det ∈ L(G) (LEX), and new dress, n ∈ L(G) (1) (3) wears the new dress, vp ∈ L(G) because vp → v np ∈ Rules, wears, v ∈ L(G) (LEX), and the new dress, np ∈ L(G) (2) (4) Sara wears the new dress, s ∈ L(G) because s → np vp ∈ Rules, Sara, np ∈ L(G) (LEX), and wears the new dress, vp ∈ L(G) (3) Now try to build the structure of the parsed string. Contents First Last Prev Next ◭
new, adj adj new dress, n n dress n → adj n n adj n new, adj, dress, n, n n adj new n dress s np Sara vp v wears np det the n adj new n dress Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
– p.8
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
CFLs—unlike regular languages—can have unbounded
however, these dependencies can only be nested, not crossing example: anbn has unlimited nested dependencies → context-free the copy language has unlimited crossing dependencies →
– p.21
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭
Contents First Last Prev Next ◭