Please try to attend next Wednesday and Friday


Pragmatics for NLP

Will Styler - LIGN 6


Today’s Plan


We’ve been talking about meaning in isolation


… but words mean something different in context


When meaning stops being about the word and starts being about the situation, we’ve entered the land of…


Pragmatics


Pragmatics

The study of meaning in a discourse context


Pragmatics is contextual


Everything in pragmatics flows from the idea of discourse


The “Cooperative Principle” helps us accomplish these goals


Gricean Maxims


The Maxim of Quality

“Tell the truth and give accurate information”


The Maxim of Quantity

“Give enough information, but not too much”


The Maxim of Relation

“Give relevant information and only relevant information”


The Maxim of Manner

“Be as clear as you can be”


Let’s test this…

Alexa, how long does it take to drive from UCSD to UCLA?


The Maxim of Quality

“Tell the truth and give accurate information”

Do not say things you believe to be false

Do not say things you don’t know (or have evidence to believe) to be true


The Maxim of Quantity

“Give enough information, but not too much”

Be as informative as required, but not more so

It’s just as uncooperative to give too much information as to give too little


The Maxim of Relation

“Give relevant information and only relevant information”

Your responses should have something to do with the matter under discussion


The Maxim of Manner

“Be as clear as you can be”

Don’t be obscure when you can avoid it

Avoid ambiguous words or phrasings

Avoid unnecessary wordyness

Organize your thoughts


We assume people are following these maxims



Violating a maxim


Flouting a Maxim


Examples of Maxim Flouting


Grice and NLP


We don’t just need these maxims for humans


The Maxim of Quality

“Tell the truth and give accurate information”


The Maxim of Quantity

“Give enough information, but not too much”


The Maxim of Relation

“Give relevant information and only relevant information”


The Maxim of Manner

“Be as clear as you can be”


Maxims and Meaning


These maxims affect meaning


Conversational Implicature

What is suggested, but not expressed or entailed, by an utterance.


“Mary finally bought a hard drive to back up her computer” implies that…


“Mary finally bought a hard drive to back up her computer” does not imply that…


Implicatures do not need to be true in every situation


“Mary finally bought a hard drive to back up her computer” implies that…


Implicatures are possible because of the Cooperative Principle


Sample implicatures


Implicatures depend on the maxims to work



“Bub ate some of the cat treats”


“John, who is 100% not a lizard person, is coming to dinner”



Implicature is important


Implicature is hard for NLP


There’s one more contextual phenomenon we have to worry about


Deictic Words

Words whose meaning depends on the conversational context


Types of Deictic Words


Find the Deictic Words

  1. “Rick and Graham had their wedding there.”

  2. “I’m not sure who you’re talking about.”

  3. “Mahesh will see to it next week.”

  4. “Sally took the students out to dinner at a Sushi restaurant.”

  5. “John saw a coffee shop across the parking lot.”


Deictic Expressions need context to be understood


Remember TIMEX normalization? Anaphora?


Sometimes, the deixis is implied but not explicit


We’ll talk about the discourse context next time


Wrapping up


For Next Time


Thank you!