Discourse Processing(NLP)
Discourse Processing(NLP)
Processing
Topic: Discourse processing
Name: Shaik karimulla
Roll No:12117052
1
Objectives
• Introduction to Natural Language Processing
• Important Stages in Natural Language Processing
• Discourse Processing
• Cohesion
• Reference Resolution
• Discourse Cohesion
2
Natural Language Processing
• Natural Language Processing (NLP) is a field of artificial
intelligence (AI) that focuses on the interaction between
computers and human language. It enables machines to
understand, interpret, and generate human language in a
way that is meaningful and useful.
• NLP is widely used in applications like chatbots,
translation systems, sentiment analysis, and voice
assistants.
3
Sources:
Left Image
Right Image
4
Important Stages in Natural
Language Processing
1. Lexical Analysis- Break the text into meaningful units
such as words, phrases or sentences.
Example:
Input: I love NLP.
Tokens: ["I", "love", "NLP", "."]
5
Important Stages in Natural Language Processing
6
Important Stages in Natural
Language Processing
3. Semantic Analysis- Understand the meaning of words
and sentences.
Example:
Sentence: I went to the bank.
Semantic Analysis: Determine whether "bank" refers to a
riverbank or a financial institution based on context
7
Important Stages in Natural
Language Processing
4. Discourse Integration- Analyze the relationships
between sentences in a text or conversation.
Example:
Text: John went to the park. He played soccer.
Integration: "He" refers to "John."
8
Important Stages in Natural
Language Processing
5. Pragmatic Analysis-Understand the intended meaning
behind the text, considering the context.
Example:
Sentence: Can you open the door?
Pragmatic Analysis: Recognize this as a request, not a
yes/no question.
9
Discourse Processing
10
Cohesion
• Cohesion refers to the linguistic elements (words,
phrases, or grammatical structures) that link sentences
together in a text, ensuring flow and clarity.
• Example:
"John went to the park. He enjoyed the fresh air."
The pronoun "He" creates cohesion by linking back to
"John.“
11
Mechanisms of Cohesion
Mechanism Purpose Example
Reference Refers to entities in or out John left. He was tired.
of text
Substitution Replaces a word to avoid I need a pen. Do you have
repetition one?
Ellipsis Omits understood She likes cats, and I do too.
information
Conjunction Links ideas using He came late, but he
connectives apologized.
Lexical Cohesion Uses vocabulary The car was fast. That
(repetition, synonyms) vehicle could fly.
Parallelism Maintains consistent He runs quickly and speaks
structure clearly.
14
Conclusion
We have seen
• What is Natural Language Processing
• Important stages and applications
• What is Discourse Processing?
• What is Cohesion?
• What is Reference Resolution?
• What is Discourse Cohesion?
15
Thank you
Shaik karimulla
12117052
CSE-AI
16