Presentation is loading. Please wait.

Presentation is loading. Please wait.

NLP. Introduction to NLP Shallow parsing Useful for information extraction –noun phrases, verb phrases, locations, etc. Example –FASTUS (Appelt and Israel,

Similar presentations


Presentation on theme: "NLP. Introduction to NLP Shallow parsing Useful for information extraction –noun phrases, verb phrases, locations, etc. Example –FASTUS (Appelt and Israel,"— Presentation transcript:

1 NLP

2 Introduction to NLP

3 Shallow parsing Useful for information extraction –noun phrases, verb phrases, locations, etc. Example –FASTUS (Appelt and Israel, 1997) Sample rules for noun groups: –NG  Pronoun | Time-NP | Date-NP –NG  (DETP) (Adjs) HdNns | DETP Ving HdNns –DETP  DETP-CP | DETP-CP

4 Incident: Date 19 Apr 89 Incident: Location El Salvador: San Salvador (CITY) Incident: Type Bombing Perpetrator: Individual ID "urban guerrillas" Perpetrator: Organization ID "FMLN" Perpetrator: Organization Suspected or Accused by Authorities: "FMLN" Confidence Physical Target: Description "vehicle" Physical Target: Effect Some Damage: "vehicle" Human Target: Name "Roberto Garcia Alvarado" Human Target: Description "attorney general": "Roberto Garcia Alvarado" "driver" "bodyguards" Human Target: Effect Death: "Roberto Garcia Alvarado" No Injury: "driver" Injury: "bodyguards"

5 Example –The dogs bites (agreement) Example –many water (count/mass nouns) Idea –S  NP VP (if the person of the NP is equal to the person of the VP)

6 Types of unification grammars –LFG, HPSG, FUG Handle agreement –e.g., number, gender, person Unification –Two constituents can be combined only if their features can unify

7 CAT NP PERSON 3 NUMBER SINGULAR CAT NP NUMBER SINGULAR PERSON 3 CAT NP NUMBER SINGULAR PERSON 3 U

8 CAT NP PERSON 3 NUMBER SINGULAR CAT NP PERSON 1 PERSON 3 U FAILURE

9 S  NP VP {NP PERSON} = {VP PERSON} S  Aux NP VP {Aux PERSON} = {NP PERSON} Verb  bites {Verb PERSON} = 3 Verb  bite {Verb PERSON} = 1

10 VP  Verb {VP SUBCAT} = {Verb SUBCAT} {VP SUBCAT} = INTRANS VP  Verb NP {VP SUBCAT} = {Verb SUBCAT} {VP SUBCAT} = TRANS VP  Verb NP NP {VP SUBCAT} = {Verb SUBCAT} {VP SUBCAT} = DITRANS

11 NLP

12 Introduction to NLP

13 Tree Substitution Grammar (TSG) –Terminals generate entire tree fragments –TSG and CFG are formally equivalent Tree Adjoining Grammar (TAG) Combinatory Categorial Grammar (CCG)

14 Like TSG but allow adjunction It can generate languages like a n b n c n or ww (cross-serial dependencies): –e.g., Mary gave a book and a magazine to Chen and Mike, respectively. Expressive power –TAG is formally more powerful than CFG –TAG is less powerful than CSG Card game online! –http://www.ltaggame.com/http://www.ltaggame.com/ –http://www.ltaggame.com/family.htmlhttp://www.ltaggame.com/family.html VP

15 Complex types –E.g., X/Y and X\Y –These take an argument of type Y and return an object of type X. –X/Y – means that Y should appear on the right –X\Y – means that Y should appear on the left Expressive power –CCGs can generate the language a n b n c n d n, n>0 Example from Jonathan Kummerfeld, Aleka Blackwell, and Patrick Littell

16 Introduction to NLP

17 Associate a semantic expression with each node Javier eats pizza V: λ x,y eat(x,y)N: pizza VP: λx eat(x,pizza)N: Javier S: eat(Javier, pizza)

18 Introduction to NLP

19 Twodee (by Jason Eisner) –http://nacloweb.org/resources/problems/2013/N2013-H.pdfhttp://nacloweb.org/resources/problems/2013/N2013-H.pdf One, Two, Tree (by Noah Smith, Kevin Gimbel, and Jason Eisner) –http://www.nacloweb.org/resources/problems/2012/N2012-R.pdfhttp://www.nacloweb.org/resources/problems/2012/N2012-R.pdf CCG (by Jonathan Kummerfeld, Aleka Blackwell, and Patrick Littell) –http://www.nacloweb.org/resources/problems/2014/N2014-O.pdfhttp://www.nacloweb.org/resources/problems/2014/N2014-O.pdf Combining categories in Tok Pisin (same authors) –http://www.nacloweb.org/resources/problems/2014/N2014-P.pdfhttp://www.nacloweb.org/resources/problems/2014/N2014-P.pdf Grammar Rules (Andrea Schalley and Pat Littell) –http://www.nacloweb.org/resources/problems/2013/N2013-F.pdfhttp://www.nacloweb.org/resources/problems/2013/N2013-F.pdf Sk8 Parser (Pat Littell) –http://www.nacloweb.org/resources/problems/2009/N2009-G.pdfhttp://www.nacloweb.org/resources/problems/2009/N2009-G.pdf

20 NLP


Download ppt "NLP. Introduction to NLP Shallow parsing Useful for information extraction –noun phrases, verb phrases, locations, etc. Example –FASTUS (Appelt and Israel,"

Similar presentations


Ads by Google