cs325 artificial intelligence natural language processing
play

CS325 Artificial Intelligence Natural Language Processing II (Ch. - PowerPoint PPT Presentation

CS325 Artificial Intelligence Natural Language Processing II (Ch. 23) Dr. Cengiz Gnay, Emory Univ. Gnay () Natural Language Processing II (Ch. 23) Spring 2013 1 / 18 So Probabilities Enough for Understanding Language? He came from out of


  1. CS325 Artificial Intelligence Natural Language Processing II (Ch. 23) Dr. Cengiz Günay, Emory Univ. Günay () Natural Language Processing II (Ch. 23) Spring 2013 1 / 18

  2. So Probabilities Enough for Understanding Language? He came from out of nowhere. Günay () Natural Language Processing II (Ch. 23) Spring 2013 2 / 18

  3. So Probabilities Enough for Understanding Language? He came from out of nowhere. From out of nowhere, he came. Günay () Natural Language Processing II (Ch. 23) Spring 2013 2 / 18

  4. So Probabilities Enough for Understanding Language? He came from out of nowhere. From out of nowhere, he came. Same meaning but different ordering: non-Markovian. How do we understand that both sentences have similar meaning? Günay () Natural Language Processing II (Ch. 23) Spring 2013 2 / 18

  5. So Probabilities Enough for Understanding Language? He came from out of nowhere. From out of nowhere, he came. Same meaning but different ordering: non-Markovian. How do we understand that both sentences have similar meaning? Look at sentence structure: “from out of nowhere” and “he came” Günay () Natural Language Processing II (Ch. 23) Spring 2013 2 / 18

  6. So Probabilities Enough for Understanding Language? He came from out of nowhere. From out of nowhere, he came. Same meaning but different ordering: non-Markovian. How do we understand that both sentences have similar meaning? Look at sentence structure: “from out of nowhere” and “he came” Today: 1 Using sentence structure in NLP 2 Machine translation 3 Speech recognition (no time, see textbook) Günay () Natural Language Processing II (Ch. 23) Spring 2013 2 / 18

  7. Entry/Exit Surveys Exit survey: Natural Language Processing I What is a good method for identifying foreign languages? How do we improve bag of words to learn word sequences? Entry survey: Natural Language Processing II (0.25 pts) Give some examples of why learning sentence structure may be useful. What was the most useful machine translation tool you ever used? Günay () Natural Language Processing II (Ch. 23) Spring 2013 3 / 18

  8. Uses of Sentence Structure in NLP Can be useful for: Disambiguation of phrases Günay () Natural Language Processing II (Ch. 23) Spring 2013 4 / 18

  9. Uses of Sentence Structure in NLP Can be useful for: Disambiguation of phrases Understanding meaning Günay () Natural Language Processing II (Ch. 23) Spring 2013 4 / 18

  10. Uses of Sentence Structure in NLP Can be useful for: Disambiguation of phrases Understanding meaning Translation Günay () Natural Language Processing II (Ch. 23) Spring 2013 4 / 18

  11. Disambiguation Strike a match. Günay () Natural Language Processing II (Ch. 23) Spring 2013 5 / 18

  12. Disambiguation Strike a match. Günay () Natural Language Processing II (Ch. 23) Spring 2013 5 / 18

  13. Disambiguation Strike a match. Günay () Natural Language Processing II (Ch. 23) Spring 2013 5 / 18

  14. How Can We Use the Sentence Structure? Hint: Günay () Natural Language Processing II (Ch. 23) Spring 2013 6 / 18

  15. How Can We Use the Sentence Structure? a Strike match Hint: Günay () Natural Language Processing II (Ch. 23) Spring 2013 6 / 18

  16. How Can We Use the Sentence Structure? Verb Phrase Noun Phrase Verb Noun Noun a Strike match Hint: Günay () Natural Language Processing II (Ch. 23) Spring 2013 6 / 18

  17. How Can We Use the Sentence Structure? Verb Phrase Noun Phrase Verb Noun Noun a Strike match Hint: Noun Noun Noun Noun Phrase Günay () Natural Language Processing II (Ch. 23) Spring 2013 6 / 18

  18. Where Do the Trees Come From? Günay () Natural Language Processing II (Ch. 23) Spring 2013 7 / 18

  19. Where Do the Trees Come From? From the forest? Günay () Natural Language Processing II (Ch. 23) Spring 2013 7 / 18

  20. Where Do the Trees Come From? From the forest? Seriously, from: The grammar: S → VP | NP VP → V NP | V NP → N | N N | N N N N → strike | match V → strike | match Günay () Natural Language Processing II (Ch. 23) Spring 2013 7 / 18

  21. Where Do the Trees Come From? From the forest? Seriously, from: The grammar: S → VP | NP VP → V NP | V NP → N | N N | N N N N → strike | match V → strike | match Results in multiple possible parses of the same sentence. Günay () Natural Language Processing II (Ch. 23) Spring 2013 7 / 18

  22. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  23. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  24. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Problems? Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  25. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Problems? 1 Omitting a good parsley (false negative): #1 above Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  26. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Problems? 1 Omitting a good parsley (false negative): #1 above 2 Including a bad parsley (false positive): #2 or #3 above Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  27. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Problems? 1 Omitting a good parsley (false negative): #1 above 2 Including a bad parsley (false positive): #2 or #3 above Solutions? 1 Use probabilities 2 Use word associations 3 Unambiguous grammar Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  28. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Problems? 1 Omitting a good parsley (false negative): #1 above 2 Including a bad parsley (false positive): #2 or #3 above Solutions? 1 Use probabilities 2 Use word associations 3 Unambiguous grammar Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  29. Multiple Possible Parsleys Parses, parsings, or parsleys (whatever) “strike a match” can be parsed as: 1 verb noun noun 2 noun noun noun 3 noun noun verb Problems? 1 Omitting a good parsley (false negative): #1 above 2 Including a bad parsley (false positive): #2 or #3 above Solutions? 1 Use probabilities 2 Use word associations 3 Unambiguous grammar Günay () Natural Language Processing II (Ch. 23) Spring 2013 8 / 18

  30. Use Probabilities and Grammar Together context-free grammar: Words are expanded without context (e.g., S → VP | NP ). Used with programming languages. Günay () Natural Language Processing II (Ch. 23) Spring 2013 9 / 18

  31. Use Probabilities and Grammar Together context-free grammar: Words are expanded without context (e.g., S → VP | NP ). Used with programming languages. “strike a match” The probabilistic grammar: S → VP ( 0 . 7 ) | NP ( 0 . 3 ) Günay () Natural Language Processing II (Ch. 23) Spring 2013 9 / 18

  32. Use Probabilities and Grammar Together context-free grammar: Words are expanded without context (e.g., S → VP | NP ). Used with programming languages. “strike a match” The probabilistic grammar: S → VP ( 0 . 7 ) | NP ( 0 . 3 ) VP → V NP ( 0 . 6 ) | V ( 0 . 4 ) Günay () Natural Language Processing II (Ch. 23) Spring 2013 9 / 18

  33. Use Probabilities and Grammar Together context-free grammar: Words are expanded without context (e.g., S → VP | NP ). Used with programming languages. “strike a match” The probabilistic grammar: S → VP ( 0 . 7 ) | NP ( 0 . 3 ) VP → V NP ( 0 . 6 ) | V ( 0 . 4 ) NP → N ( 0 . 6 ) | N N ( 0 . 3 ) | N N N ( 0 . 1 ) Günay () Natural Language Processing II (Ch. 23) Spring 2013 9 / 18

  34. Use Probabilities and Grammar Together context-free grammar: Words are expanded without context (e.g., S → VP | NP ). Used with programming languages. “strike a match” The probabilistic grammar: S → VP ( 0 . 7 ) | NP ( 0 . 3 ) VP → V NP ( 0 . 6 ) | V ( 0 . 4 ) NP → N ( 0 . 6 ) | N N ( 0 . 3 ) | N N N ( 0 . 1 ) N → strike ( 0 . 4 ) | match ( 0 . 7 ) Günay () Natural Language Processing II (Ch. 23) Spring 2013 9 / 18

  35. Use Probabilities and Grammar Together context-free grammar: Words are expanded without context (e.g., S → VP | NP ). Used with programming languages. “strike a match” The probabilistic grammar: S → VP ( 0 . 7 ) | NP ( 0 . 3 ) VP → V NP ( 0 . 6 ) | V ( 0 . 4 ) NP → N ( 0 . 6 ) | N N ( 0 . 3 ) | N N N ( 0 . 1 ) N → strike ( 0 . 4 ) | match ( 0 . 7 ) V → strike ( 0 . 6 ) | match ( 0 . 3 ) Günay () Natural Language Processing II (Ch. 23) Spring 2013 9 / 18

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend