Artificial Intelligence · Unit 10
Natural Language Processing
Exam-focused notes for Natural Language Processing (Artificial Intelligence, BIT252): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.
Natural Language Processing in short
Natural language processing (NLP) lets computers understand and produce human language. It is hard because human language is rich, flexible, and often unclear. This chapter covers the stages of NLP and the main difficulties.
What this unit covers
- NLP steps and pipeline
- Ambiguities in natural language
- Natural language understanding
- Natural language generation
- Discourse analysis
- Pragmatic analysis
Discourse analysis
2082 · 5 marks
Discuss the discourse and pragmatic analytics in natural language processing. [5]
Show solved answerHide answer
Discourse and Pragmatic Analytics in Natural Language Processing
1. Discourse Analytics
Discourse refers to the analysis of language beyond the sentence level. It deals with how sentences are connected and structured to form coherent text or conversation.
Key Components of Discourse Analytics:
a) Discourse Structure
- Analyzes how sentences and paragraphs are organized to convey meaning.
- Identifies rhetorical relations between text segments (e.g., cause-effect, contrast, elaboration).
b) Coreference Resolution
- Determines when different expressions in a text refer to the same entity.
- Example: "Ram went to the store. He bought milk." -- "He" refers to Ram.
c) Discourse Coherence
- Ensures that a text is logically and semantically connected.
- Models like Centering Theory track how entities are introduced and maintained across sentences.
d) Anaphora Resolution
- Identifies what a pronoun or noun phrase refers to in earlier text.
- Example: Resolving "it", "they", "this" to their antecedents.
e) Topic Segmentation
- Divides a document into segments based on topic shifts.
- Used in summarization, information retrieval, and dialogue systems.
2. Pragmatic Analytics
Pragmatics is the study of how context influences the interpretation of meaning. It goes beyond literal meaning to understand the intended meaning of an utterance.
Key Components of Pragmatic Analytics:
a) Speech Act Theory
- Proposed by Austin and Searle.
- Every utterance performs an act:
- Locutionary act: The literal meaning.
- Illocutionary act: The intended action (request, promise, warning).
- Perlocutionary act: The effect on the listener.
- Example: "Can you pass the salt?" is a request, not a yes/no question.
b) Implicature
- Based on Grice's Cooperative Principle and maxims (Quantity, Quality, Relation, Manner).
- Speakers often imply more than they literally say.
- Example: "It's getting cold in here" implies "Please close the window."
c) Presupposition
- Information that is assumed to be true before an utterance is made.
- Example: "Have you stopped cheating?" presupposes the person was cheating.
d) Deixis
- Words whose interpretation depends on context (time, place, person).
- Types: Person deixis (I, you), Place deixis (here, there), Time deixis (now, then).
e) Dialogue and Conversation Management
- Analyzes turn-taking, topic management, and conversational implicature in dialogues.
- Important for building chatbots and dialogue systems.
3. Importance in NLP Applications
| Application | Discourse/Pragmatic Role |
|---|---|
| Machine Translation | Maintaining coherence across sentences |
| Chatbots | Understanding intent beyond literal words |
| Sentiment Analysis | Detecting sarcasm and implied meaning |
| Text Summarization | Identifying key discourse segments |
| Question Answering | Resolving references and context |
Summary
Discourse analytics focuses on structure and coherence of text across sentences, while pragmatic analytics focuses on contextual and intended meaning of language. Both are essential for building NLP systems that truly understand human language rather than just processing words in isolation.
Ambiguities in natural language
2079 · 5 marks
Explain the different ambiguities related to NLP. [5]
0 · 5 marks
What types of ambiguities does NLP suffer with? Describe. [5]
NLP steps and pipeline
Make Unit 10 stick
Practice BIT252 with flashcards & quizzes