AI Foundations & Math

The NLP Chronicles Part 3: From Case Grammar to Statistics and N-Gram Corpora

English version of AI World 2026. 11. 10. 23:01
반응형
The NLP Chronicles Part 3: From Case Grammar to Statistics and N-Gram Corpora
While syntactic trees map the structural configuration of a sentence, they do not inherently decode its underlying message. To bridge the gap between structure and cognition, artificial intelligence had to explore Semantic Analysis—the extraction of language-independent meaning. This article reviews the transition from Charles J. Fillmore’s cognitive Case Grammar to data-driven Statistical NLP, analyzing how massive text corpora and statistical N-gram modeling laid the algorithmic foundation for modern machine translation.
1. Fillmore’s Case Grammar: Mapping the Deep Semantic Layer
In traditional grammar, structural definitions like "subject" and "object" change completely depending on the language's typographic rules and whether a sentence is active or passive. To extract an unchanging, universal meaning independent of specific human tongues, linguist Charles J. Fillmore introduced Case Grammar.
Fillmore split language into two distinct layers:
  • Surface Case: The overt grammatical positioning of words within a specific language's sentence structure (e.g., word order, case markers, inflection).
  • Deep Case: The underlying, universal semantic roles that entities play relative to the core verb action, completely independent of sentence structure or language choice.
To formalize this deep semantic layer for computational ingestion, systems utilize standard Deep Case Taxonomy Matrices:
text
[ Core Predicate / Verb Action ]
       │
       ├─► [ Agentive (A) ] ─────► The conscious entity initiating the action
       ├─► [ Objective (O) ] ─────► The entity undergoing a shift or transition
       └─► [ Locative (L) ] ──────► The exact geographic spatial boundary of the event
 
 
Deep Case TaxonomyCore Semantic Definition
Agentive (A) The animate instigator or conscious initiator of the predicate action.
Experiencer (E) The entity undergoing a specific psychological or sensory perception.
Instrumental (I) The inanimate force, tool, or object causally involved in the action.
Objective (O) The entity or element undergoing a change of state, movement, or transition.
Source (S) The spatial or temporal origin point from which an entity moves or transitions.
Goal (G) The terminal spatial or temporal boundary toward which an action is directed.
Locative (L) The structural geographic position or environment where the action occurs.
Cross-Linguistic Verification of Deep Cases
To see how Case Grammar normalizes data, let us analyze our ongoing target sentence alongside its Korean translation:
  • English (Surface Case Active): "The autonomous agent determines its role in the system."
  • Korean (Surface Case Agglutinative): "자율형 에이전트가 시스템 내에서 자신의 역할을 결정합니다."
While the surface structures are vastly different—English following a Subject-Verb-Object (SVO) layout and Korean utilizing a Subject-Object-Verb (SOV) structure bound by case particles (가, 에서, 를)—the Deep Case Semantic Ingestion yields a completely identical uniform matrix:
text
[ Predicate / Action Root ] ──> "determine" / "결정하다"
       │
       ├─► [ Agentive (A) ]   ──> "the autonomous agent" / "자율형 에이전트"
       ├─► [ Objective (O) ]  ──> "its role" / "자신의 역할"
       └─► [ Locative (L) ]   ──> "in the system" / "시스템 내에서"
 
 
By converting raw language into these language-independent deep case vectors, early AI pipelines could map out meaning without getting bogged down by the superficial variations of different human languages.

2. The Shift to Statistical NLP: Breaking the Expert Bottleneck
While Case Grammar and Chomsky's rewrite rules were mathematically elegant, building real-world AI applications with them hit a major wall known as the Expert Bottleneck. Writing thousands of highly intricate grammatical rules and semantic dictionaries by hand was simply too complex for human engineers to scale. Real-world language was full of exceptions, slang, and double meanings that broke rigid rule-based code.
To break through this limitation, the industry shifted in the 1990s from hand-coded rules to Statistical Natural Language Processing. Instead of trying to teach a computer the prescriptive rules of grammar, engineers began feeding machines massive databases of real-world text called Corpora (singular: Corpus). Using statistical processing, computers started counting word frequencies and tracking contextual patterns to learn the implicit rules of language on their own.

3. Mathematical Foundations of the N-Gram Language Model
The foundational mathematical framework of Statistical NLP is the N-Gram Model. An N-gram is defined as a continuous sequence of \(n\) items extracted from a given text stream.
To see how this works mathematically, let us break down our core sentence into a 2-Gram (Bigram) tokenization matrix:
Target String Ingestion
text
The autonomous agent dynamically determines its role in the system.
 
 
The Bigram (2-Gram) Associative Pipeline Mapping
text
[ The ] ──► [ autonomous ] ──► [ agent ] ──► [ dynamically ] ──► [ determines ] ──► [ its ] ──► [ role ] ──► [ in ] ──► [ the ] ──► [ system ]
 
 
Antecedent Token (\(w_{t-1}\))Consequent Target Token (\(w_{t}\))Transition Sequence
The autonomous (The, autonomous)
autonomous agent (autonomous, agent)
agent dynamically (agent, dynamically)
dynamically determines (dynamically, determines)
determines its (determines, its)
its role (its, role)
role in (role, in)
in the (in, the)
the system (the, system)
Calculating Probabilities Across the Chain
When a system processes a massive corpus containing billions of words, it counts every time these two-word pairs appear together. This allows the model to calculate the exact conditional probability of a specific word appearing right after another:
\(\\ P(w_{t}\mid w_{t-1})=\frac{\text{Count}(w_{t-1},w_{t})}{\text{Count}(w_{t-1})}\\ \)
For instance, after encountering the token "autonomous", the model checks its statistical database and finds that the token "agent" or "system" has a high probability of appearing next, while completely unrelated words like "banana" register a probability score of zero. These calculated probabilities serve as an implicit, data-driven grammar. The system can use these scores to score the natural flow of text or autonomously generate logical sentences by selecting the next most probable word in the chain.

4. The Three Eras of Machine Translation (MT)
The evolution of machine translation mirrors the broader history of NLP, moving through three distinct eras of technological innovation:
[ Era 1: RBMT ] ──► Hand-coded rules & direct word swaps ──► Rigid, literal, easily breaks
[ Era 2: SMT ]  ──► Probability matrices across bilingual corpora ──► Better fluency, lacks deep context
[ Era 3: NMT ]  ──► End-to-end artificial neural networks ──► Human-like contextual comprehension
  1. Rule-Based Machine Translation (RBMT): The early pioneer framework that mapped direct word-to-word conversions and used human-coded restructuring rules to swap word orders between languages. Because it could not handle the fluid nuances of context, the translations were stiff, literal, and frequently incorrect.
  2. Statistical Machine Translation (SMT): This approach threw out manual translation rules in favor of statistical probability matrices. By analyzing huge collections of parallel bilingual documents, the system calculated the most mathematically probable sentence translations. While SMT significantly improved fluency, it still looked at language through localized windows and missed the broader, overarching context of whole documents.
  3. Neural Machine Translation (NMT): Developed around 2013, NMT revolutionized the field by processing entire translation pipelines through unified Artificial Neural Networks. Benefiting from deep learning, NMT maps full sentences into abstract vector spaces to capture deep contextual meaning. This paradigm shift delivered highly accurate, human-like translations and laid the direct technical blueprint for modern generative AI architectures.

(Continued in Part 4: The Vector Revolution and Word2vec Semantics)

반응형