- Asked 6/12
- 2069 Bhadra · 6 marks
- 2069 Poush · 8 marks
- 2072 Asoj · 2+6 marks
- 2072 Magh · 8 marks
- 2073 Magh · 2+4 marks
- 2075 Baisakh · 8 marks
NLP and its steps
Short answer
NLP is AI that enables computers to understand and generate human language. Its steps are phonological, morphological, syntactic, semantic, discourse, and pragmatic analysis, progressing from speech/text to intended meaning.
What is natural language processing (NLP)? Explain the different steps of NLP (with block diagram, examples and applications). Justify that NLP is an important part of AI.
Natural language processing (NLP) is the area of AI concerned with enabling computers to understand, interpret and generate human (natural) languages such as English or Nepali. It has two parts: natural language understanding (NLU), which maps text/speech to meaning, and natural language generation (NLG), which produces text from meaning.
Steps (levels) of NLP
Input text/speech
|
[1 Phonetic/Phonological] (speech only)
v
[2 Morphological analysis] words -> stems, affixes
v
[3 Syntactic analysis] parse tree (grammar)
v
[4 Semantic analysis] literal meaning
v
[5 Discourse integration] link sentences
v
[6 Pragmatic analysis] intended meaning in context
v
Meaning / action / response
- Phonetic / phonological analysis: converts the speech signal into sounds (phonemes). Used only for spoken input.
- Morphological (lexical) analysis: splits words into root and affixes and identifies word class. "Unhappiness" = un + happy + ness.
- Syntactic analysis (parsing): checks that the word order follows grammar and builds a parse tree. "The cat sat on the mat" is accepted; "Mat the on sat cat" is rejected.
- Semantic analysis: assigns a literal meaning to the structure and checks it makes sense. "Colourless green ideas sleep furiously" is syntactically fine but semantically odd.
- Discourse integration: the meaning of a sentence depends on earlier ones. "Ram took the book. He read it." (he = Ram, it = book).
- Pragmatic analysis: interprets meaning using context and intention. "Can you pass the salt?" is a request, not a question about ability.
Example: for "Ram eats an apple", morphology finds eat + s; syntax gives S → NP(Ram) VP(V(eats) NP(an apple)); semantics gives eat(Ram, apple).
Applications
Machine translation, speech recognition, question answering, chatbots and virtual assistants, information retrieval and extraction, text summarisation, spelling and grammar checking, sentiment analysis.
Why NLP is important for AI
- Language is the main medium of human intelligence; an AI must understand it to communicate naturally.
- It lets people use computers without programming, through speech or text.
- Much of the world's knowledge is stored as text, so NLP lets machines acquire and use it.
- It is needed for the Turing test, intelligent assistants, and knowledge-based systems.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- NLU and NLG; NLP steps · Artificial Intelligence, chapter 7
- Define AI, importance and applications · Artificial Intelligence, chapter 1 · asked 2×
- NLP issues with example · Artificial Intelligence, chapter 7
- AI, Turing test importance, applications · Artificial Intelligence, chapter 1
- Applications of AI in daily life · Artificial Intelligence, chapter 1
- High level languages and natural language · Computer Programming, chapter 1
- Interrupt processing steps · Embedded System, chapter 5
- OFC block diagram vs microwave link · Propagation and Antenna, chapter 6
- Frequency counter operation with block diagram · Digital Logic, chapter 11 · asked 14×