Chapter 1
Chapter 1
Syntactic
Analysis
Semantic
Analysis
Discourse
Analysis
Pragmatic
Analysis
Lexical Analysis
Breaking/Deciphering text into Lexicons / lexemes e.g. paragraph, sentence, phrases, word etc
Lexemes are split into morphemes. There are 2 types of morphemes:
• Free morphemes function independently as words (like “cow” and “house”).
• Bound morphemes make up larger words. The word “unimaginable” contains the
morphemes “un-” (a bound morpheme signifying a negative context), “imagine”
(the free morpheme root of the whole word), and “-able” (a bound morpheme
denoting the root morpheme’s ability to end).
“Wherever Ram went misfortune dogged him”.
“The chair emphasised the need for adult education”.
For example, “Ramesh wrote the paper” passes a syntactic analysis check
because it’s grammatically correct.
Conversely, a syntactic analysis categorizes a sentence like “Ramesh do
jumps” as syntactically incorrect.
Challenges in syntactic Parsing
Structural Ambiguity – Identify the ambiguities in below sentences
“The old men and women were taken to safe locations”.
“I saw the boy with a Telescope”
Semantic Analysis
Semantic analysis is concerned with the meaning representation, word sense disambiguation
and Entity Recognition (as we saw structural analysis limitations).
It mainly focuses on the literal meaning of words, phrases, and sentences.
Evaluate
Spelling Correction: Edit
Distance
The minimum edit distance between two strings Is the minimum number of editing operations
Insertion
Deletion
Substitution
Example