Unit 3 NLP
Unit 3 NLP
Unit 3 NLP
Key Features:
● States and Transitions: Like a finite state machine, it has states and
transitions.
● Recursion: A state can transition to a "subnetwork," which is essentially
a call to another part of the network (or itself).
Key Features:
Feature Systems
Augmented Grammar
Key Features:
● Rule: S → NP VP
○ Semantic Action: Ensure the number feature of NP matches VP.
● Rule: NP → Det N
○ Condition: The features of Det and N must be compatible.
● Rule: VP → V NP
○ Semantic Action: Ensure the verb agrees with the subject in
number.
Definition: A feature system for English assigns specific attributes and values
to words and phrases to capture grammatical properties and ensure proper
syntactic and semantic agreement.
Key Features:
● Number:
○ Values: Singular, Plural
○ Example: "cat" (singular), "cats" (plural)
● Person:
○ Values: First, Second, Third
○ Example: "I" (first), "you" (second), "he" (third)
● Gender:
○ Values: Masculine, Feminine, Neuter
○ Example: "he" (masculine), "she" (feminine), "it" (neuter)
● Case:
○ Values: Nominative, Accusative, Genitive
○ Example: "he" (nominative), "him" (accusative), "his" (genitive)
● Tense:
○ Values: Present, Past, Future
○ Example: "sees" (present), "saw" (past), "will see" (future)
● Aspect:
○ Values: Simple, Progressive, Perfect
○ Example: "sees" (simple), "is seeing" (progressive), "has seen"
(perfect)
● Voice:
○ Values: Active, Passive
○ Example: "sees" (active), "is seen" (passive)
● Mood:
○ Values: Indicative, Imperative, Subjunctive
○ Example: "sees" (indicative), "see!" (imperative), "were" in "If I
were" (subjunctive)
Morphological Analysis
Key Points:
● Morpheme:
○ Definition: The smallest unit of meaning in a language.
○ Types: Free morphemes (standalone words) and bound morphemes
(prefixes, suffixes).
○ Example: "unhappiness" (un- (prefix), happy (root), -ness (suffix))
● Types of Morphological Processes:
○ Inflection:
■ Changes the form of a word to express different grammatical
features.
■ Example: "walk" → "walks" (present tense), "walked" (past
tense)
○ Derivation:
■ Creates new words by adding prefixes or suffixes.
■ Example: "happy" → "unhappy" (prefix), "happiness"
(suffix)
○ Compounding:
■ Combines two or more free morphemes to create a new
word.
■ Example: "notebook" (note + book), "blackboard" (black +
board)
● Steps in Morphological Analysis:
○ Segmentation: Breaking down words into morphemes.
○ Classification: Identifying the types and roles of morphemes.
○ Reassembly: Combining morphemes to understand the word's
structure and meaning.
Lexicon-
Key Components:
● Lemma: run
● POS: Verb
● Morphological Information: runs, ran, running
● Syntactic Information: [subject NP, object NP]
● Semantic Information:
○ Definition: Move at a speed faster than a walk.
○ Synonyms: sprint, jog
○ Antonyms: walk, stand