Natural Language Query Interface Mostafa Karkache & Bryce Wenninger.

Slides:



Advertisements
Similar presentations
Computational language: week 10 Lexical Knowledge Representation concluded Syntax-based computational language Sentence structure: syntax Context free.
Advertisements

Sub-constituents of NP in English September 12, 2007.
1 Grammars and Parsing Allen ’ s Chapters 3, Jurafski & Martin ’ s Chapters 8-9.
For Friday No reading Homework –Chapter 23, exercises 1, 13, 14, 19 –Not as bad as it sounds –Do them IN ORDER – do not read ahead here.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing Probabilistic Context Free Grammars (Chapter 14) Muhammed Al-Mulhem March 1,
PHONEXIA Can I have it in writing?. Discuss and share your answers to the following questions: 1.When you have English lessons listening to spoken English,
For Monday Read Chapter 23, sections 3-4 Homework –Chapter 23, exercises 1, 6, 14, 19 –Do them in order. Do NOT read ahead.
NLP Syntax1 Syntax The Structure of language Dave Inman.
Language, Mind, and Brain by Ewa Dabrowska Chapter 2: Language processing: speed and flexibility.
June 7th, 2008TAG+91 Binding Theory in LTAG Lucas Champollion University of Pennsylvania
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
Dr. Ansa Hameed Syntax (4).
Syntax Nuha AlWadaani.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
11 CS 388: Natural Language Processing: Syntactic Parsing Raymond J. Mooney University of Texas at Austin.
CS-EE 481 Spring Founders Day, 2005 University of Portland School of Engineering Project Pocket Gopher Conversational Learning Agent Team Josh Jones.
PARSING David Kauchak CS457 – Fall 2011 some slides adapted from Ray Mooney.
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
1 CPE 480 Natural Language Processing Lecture 5: Parser Asst. Prof. Nuttanart Facundes, Ph.D.
For Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
Data Structures & Algorithms and The Internet: A different way of thinking.
GRAMMARS David Kauchak CS159 – Fall 2014 some slides adapted from Ray Mooney.
Context-Free Parsing Read J & M Chapter 10.. Basic Parsing Facts Regular LanguagesContext-Free Languages Required Automaton FSMPDA Algorithm to get rid.
Keyword Searching and Browsing in Databases using BANKS Seoyoung Ahn Mar 3, 2005 The University of Texas at Arlington.
PARSING David Kauchak CS159 – Spring 2011 some slides adapted from Ray Mooney.
Context Free Grammars Reading: Chap 9, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Rada Mihalcea.
11 Chapter 14 Part 1 Statistical Parsing Based on slides by Ray Mooney.
GTRI.ppt-1 NLP Technology Applied to e-discovery Bill Underwood Principal Research Scientist “The Current Status and.
Transition Network Grammars for Natural Language Analysis - W. A. Woods In-Su Yoon Pusan National University School of Electrical and Computer Engineering.
Syntax Why is the structure of language (syntax) important? How do we represent syntax? What does an example grammar for English look like? What strategies.
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
October 2005CSA3180 NLP1 CSA3180 Natural Language Processing Introduction and Course Overview.
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
Introduction to Dialogue Systems. User Input System Output ?
Computational linguistics A brief overview. Computational Linguistics might be considered as a synonym of automatic processing of natural language, since.
CPE 480 Natural Language Processing Lecture 4: Syntax Adapted from Owen Rambow’s slides for CSc Fall 2006.
Rules, Movement, Ambiguity
Artificial Intelligence: Natural Language
CSA2050 Introduction to Computational Linguistics Parsing I.
Natural Language - General
PARSING 2 David Kauchak CS159 – Spring 2011 some slides adapted from Ray Mooney.
1 Context Free Grammars October Syntactic Grammaticality Doesn’t depend on Having heard the sentence before The sentence being true –I saw a unicorn.
For Monday Read chapter 24, sections 1-3 Homework: –Chapter 23, exercise 8.
For Monday Read chapter 26 Last Homework –Chapter 23, exercise 7.
Making it stick together…
Data Mining: Text Mining
For Friday Finish chapter 23 Homework –Chapter 23, exercise 15.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
SYNTAX.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
GRAMMARS David Kauchak CS457 – Spring 2011 some slides adapted from Ray Mooney.
Natural Language Processing Group Computer Sc. & Engg. Department JADAVPUR UNIVERSITY KOLKATA – , INDIA. Professor Sivaji Bandyopadhyay
Natural Language Processing (NLP)
Search and Retrieval: Query Languages Prof. Marti Hearst SIMS 202, Lecture 19.
For Monday Read chapter 26 Homework: –Chapter 23, exercises 8 and 9.
NATURAL LANGUAGE PROCESSING
PARSING David Kauchak CS159 – Fall Admin Assignment 3 Quiz #1  High: 36  Average: 33 (92%)  Median: 33.5 (93%)
Context Free Grammars. Slide 1 Syntax Syntax = rules describing how words can connect to each other * that and after year last I saw you yesterday colorless.
Natural Language Processing Vasile Rus
CSC 594 Topics in AI – Natural Language Processing
Basic Parsing with Context Free Grammars Chapter 13
Natural Language Processing
LING/C SC/PSYC 438/538 Lecture 21 Sandiway Fong.
CS 388: Natural Language Processing: Syntactic Parsing
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
Natural Language - General
CS246: Information Retrieval
David Kauchak CS159 – Spring 2019
Information Retrieval
Presentation transcript:

Natural Language Query Interface Mostafa Karkache & Bryce Wenninger

Outline Natural Language Query Interface Introduction What is Natural Language Query Interface? Why do we need this type interface? Problems implementing this interface. Ambiguity i.e. Semantics Size of the language Syntax And Grammars Anaphora Indexicality Metaphor NL domains of application Internet Information retrieval : search engines Information filtering: document grouping Database Conclusion: Current status Future trend

Introduction What is Natural Query Language Interface? What is it for? Where would it be used? Why do we need this interface? How much would it really help? Is it even possible?

Problems with implementation Ambiguity i.e. Semantics Size of the language Syntax And Grammars Anaphora Indexicality Metaphor

Problems with implementation… Ambiguity and Semantics The boy saw the man on the hill with the telescope

Ambiguity and Semantics What is wrong with this sentence? Ans: Too ambiguous How many different meanings can it have? The only way to truly understand is to be there.

Ambiguity and Semantics Another example of problems is with semantics. The word up can have many meanings when used in different ways such as, “Look up there”, “It is up to me”, “Is he up to the task?”, “She is not up yet”, “Starting up”, “What’s up dude?”

More problems with implementation… Size of the language Most Natural Languages have enormous vocabulary. Example: The English language has approximately 3 Million words, and counting. 200,000 of which are in common use today (and this isn’t counting semantics).

More problems with implementation… Syntax And Grammars Languages have alphabets and rules Sample alphabet {a, b} Sample (rewrite) rules: S  aSb S  ba This will generate words of type ba, abab, aababb, aaababbb

Syntax And Grammars… English’s main constituents: Sentences Noun phrases Verb phrases Prepositional phrases

A sample English grammar S -> NP VP NP -> Det NOMINAL NOMINAL -> Noun VP -> Verb Det -> a Noun -> table Verb -> found

Any Problem with that grammar? It is context free grammar, it only account for the syntactic structure. CFG works fine for any high level language. How about the semantics of the words?

Semantic Representations Can we create representations of the meanings of the English words?. This is not an easy task. It is a very complex task. A context sensitive grammar is needed.

More problems with implementation… Anaphora What is Anaphora? Pronouns and Nouns Why is it a problem? Key words have to be tallied. How would it have to be Handled?

More problems with implementation… Indexicality A sentence that refers to a situation (place or time) Example: “I am over here” Where is “here”? Who is “I”?

More problems with implementation… Metaphor Non literal use of a word. “This process was killed because it ran out of resources” Meaning in manufacturing vs. computers.

Domains of Application Internet Information retrieval: with search engines Information filtering: document grouping More... Database

NLIQ and the internet Information retrieval : an English query is issued to a search engine, Documents relevant to the query are returned.

Two methods are used Exact matching Inexact matching

Exact Matching restrictive and is known for low hits

Inexact Matching higher hit rate …But User might have to scan a lot of returned documents!!

How does it work? select the ‘candidate key’ words from the query ‘a’, ‘the’, ‘an’ etc would not make it Count the key words in the documents “running”, “run”, “ran” and “runner” would count as one

How does it work… Rank the documents by frequency of key words found

Information filtering Documents are first prepared and then searched Documents are ranked by topics

NLQI and Database Database business, an industry that runs in the billions of dollars a more user-friendly interface between the user and the machine is needed NLQI seems to fit well

Example of DB use Give me the names of the employees of Banks Of America who signed up for 401k? Sounds easy? To humans, yes Not to machines!!

What does “up” mean? Give me the names of the employees of Banks Of America who signed up for 401k?

Solution! Create an index that has all the meanings of every word that can be used in database domain!!! Then guess what “up” would mean

NLQI and Database… Can’t use NLQI to create a database: ---Data integrity compromised Could use NLQI for information retrieval: ---Performance compromised, to say the least

Current status NLQI is used in many areas today, but it is very (very) application specific. This is to avoid a lot of the problems discussed in this presentation. Broad use and what NLQI is truly capable of has not yet been realized.

Future trend Where is it going? The trend is to store more and more data per user to help determine exactly what semantics the user is really intending. This is called incremental enhancement of the data retrieval process Will it ever get there?

Questions? You’ve got questions, we’ve got answers (hopefully).