Unit-4 AI Notes
Unit-4 AI Notes
1. Tokenization: Splitting sentences into words or parts to make them easier for
computers to understand.
2. Syntax and Semantics: Figuring out the structure of sentences (syntax) and
the meaning of words and phrases (semantics) to understand what’s being said.
4. Sentiment Analysis: Detecting the emotional tone of text, like if it’s positive,
negative, or neutral.
1. Rule-Based Systems: Uses fixed rules for language tasks. Good for simple
tasks but can’t handle complex language variations.
1. Top-Down Parsing
How it works: Starts with the overall structure (sentence) and breaks it down into
smaller parts, matching each word or phrase with grammar rules.
Example: If the rule says a sentence is "subject + verb + object," the parser tries
to identify each of these parts in the sentence.
Limitation: Can sometimes fail if the sentence structure doesn’t fit neatly with the
rules.
2. Bottom-Up Parsing
How it works: Begins with individual words and gradually combines them into
larger structures until a full sentence is formed.
Example: First, it identifies words, then combines them into phrases, and finally
joins them into a sentence.
3. Dependency Parsing
How it works: Focuses on the relationships between words (like “subject” and
“object”) rather than just their order.
Example: In “The cat chased the mouse,” it identifies that “cat” is the subject,
“chased” is the verb, and “mouse” is the object.
How it works: Breaks sentences into nested parts, like a tree structure, to show
how smaller parts form larger phrases.
Example: “The quick brown fox” might be parsed as a noun phrase within a
larger sentence structure.
Advantage: Helps identify the grammar structure, which is useful for sentence
generation and translation.
5. Chart Parsing
How it works: Uses a table (or "chart") to store possible interpretations of each
part of a sentence, helping avoid re-analysis of the same parts.
Example: As it parses a sentence, it notes down all possible structures to find the
best fit.
Components:
Use in AI: Helps computers analyze and understand the structure of sentences.
Transformational Grammar
Definition: A framework that explains how sentences can change form while
maintaining meaning.
Components:
Use in AI: Aids in understanding different ways to express the same idea,
enhancing natural language processing.
Summary