Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 97 pages
Exam (elaborations)

NATURAL LANGUAGE PROCESSING, EXERCISES OF NATURAL LANGUAGE PROCESSING (NLP)

Document preview thumbnail
Preview 4 out of 97 pages

NATURAL LANGUAGE PROCESSING, EXERCISES OF NATURAL LANGUAGE PROCESSING (NLP)

Content preview

1


NATURAL LANGUAGE PROCESSING, EXERCISES OF NATURAL

LANGUAGE PROCESSING (NLP) FULL PACKAGE QUESTIONS

ANSWERS AND RATIONALES 2026-27 LATEST UPDATED VERSION

INSTANT DOWNLOAD PDF..!!

Welcome to the definitive diagnostic question bank for Natural Language Processing (NLP). This specialized
instructional package is meticulously engineered for computer scientists, AI engineers, and advanced data
science students preparing for rigorous academic and professional certifications in computational linguistics
and state-of-the-art language modeling. In the contemporary AI landscape, mastering NLP requires far more
than rote memorization of foundational pipelines; you must demonstrate deep mathematical, architectural,
and application-level competence across complex neural networks, statistical probability distributions, and
linguistic structures. The examination evaluates your capacity to design, diagnose, and optimize systems
ranging from classical statistical sequence labelers to massive auto-regressive Transformer models. This curated
question bank delivers hyper-realistic, scenario-based multiple-choice questions meticulously calibrated to
simulate the highest tier of exam difficulty. Each problem tests your conceptual agility under constraints,
forcing you to analyze architectural failures, mathematical optimization anomalies, and tokenization edge
cases. By systematically working through these problems, reading the exhaustive rationales, and isolating your
structural vulnerabilities, you will cultivate the analytical precision required to conquer this high-stakes exam
on your very first attempt.

CORE DOMAINS TESTED

• Domain 1: Tokenization, Lexical Semantics, and Statistical Language Modeling: Subword tokenization
dynamics (BPE, WordPiece), Zipfian distributions, N-gram smoothing formulations (Kneser-Ney), and
classical vector space representations.

• Domain 2: Sequence Labeling and Syntactic Analysis: Hidden Markov Models (HMMs), Conditional
Random Fields (CRFs), Viterbi optimization, and constituency versus dependency parsing algorithms.

• Domain 3: Representation Learning and Dense Word Embeddings: Distributed representations, Skip-
Gram and Continuous Bag-of-Words (CBOW) optimization, negative sampling mechanics, and
compositional semantic spaces (Word2Vec, GloVe, FastText).

• Domain 4: Deep Learning and Attention-based Architectures: Recurrent structures (LSTMs, GRUs),
the vanishing gradient bottleneck, scaled dot-product attention mechanics, Transformer encoder-
decoder topologies, and pre-training paradigms (BERT, GPT, T5).

• Domain 5: Downstream System Deployment, Generation, and Evaluation: Machine translation
decoding strategies (Beam Search, Nucleus sampling), alignment mechanics (RLHF, DPO), and metric
vulnerabilities (BLEU, ROUGE, perplexity).

,2




Q1: An engineer is training a Byte-Pair Encoding (BPE) tokenizer on a
massive medical corpus. During testing, they observe that highly
critical, low-frequency medical terms containing rare prefixes are
continually being fragmented into non-semantic, single-character
subwords, causing a downstream clinical Named Entity Recognition
(NER) model to fail. Which intervention is mathematically and
procedurally optimal to resolve this issue?
A) Increase the vocabulary size parameter drastically to force single-
character merges across the entire corpus.
B) Add a manual regex rule to strip all punctuation and force the BPE
model to ignore case sensitivity during the initial pre-tokenization
split.
C) Implement a dedicated base vocabulary containing
unfragmented clinical root morphemes and adjust the BPE merge
priority scores to protect these sequences before training the
subword vocabulary.
D) Switch to a character-level tokenization scheme and increase the
embedding dimensions of the downstream NER model by a factor of
four.
Rationale: The correct answer is C because BPE constructs its
subword vocabulary iteratively based on the statistical frequency of
adjacent token pairs. Rare, high-stakes domain terms are frequently
fragmented because their global corpus frequency is too low to

,3


trigger a merge rule. Introducing a protected base vocabulary
ensures that critical domain morphemes are preserved as coherent
units. Option A is incorrect because blindly inflating the vocabulary
size can introduce immense sparsity and accelerate model parameter
bloating without guaranteeing the retention of rare sequences.
Option B is incorrect because altering punctuation rules does not
solve the frequency-driven subword fragmentation of valid text
strings. Option D is incorrect because pure character-level
tokenization eliminates semantic word boundary representations,
making the downstream NER extraction task exponentially harder
and computationally prohibitive.

Q2: A developer implements an absolute discounting N-gram
language model but finds that it severely underestimates the
probability of novel, unseen word combinations containing highly
frequent words (e.g., words with high unigram frequency that rarely
function as novel extensions). Which alternative smoothing algorithm
should be applied to properly redistribute probability mass based on
a word's historical tendency to complete novel contexts?
A) Laplace (Add-One) Smoothing
B) Good-Turing Frequency Estimation
C) Modified Kneser-Ney Smoothing
D) Jelinek-Mercer Linear Interpolation
Rationale: The correct answer is C. Kneser-Ney smoothing introduces

, 4


the critical concept of continuation probability, which estimates how
likely a word is to complete an unseen context based on the number
of unique words that precede it, rather than its raw unigram
frequency. For example, "Francisco" has a high unigram frequency
due to "San Francisco", but a low continuation probability. Option A is
incorrect because Laplace smoothing over-allocates probability mass
to rare or impossible N-grams in large vocabularies. Option B is
incorrect because Good-Turing estimates the probability of unseen N-
grams using the frequencies of N-grams that appeared exactly once,
which does not account for continuation context. Option D is incorrect
because simple linear interpolation mixes absolute N-gram
frequencies without factoring in the continuation distribution.

Q3: A Neural Machine Translation (NMT) system utilizes a standard
Beam Search decoding algorithm. During inference, the system
consistently generates short, truncated sentences that omit crucial
descriptive clauses present in the source text. Upon reviewing the
candidate log-probabilities, you notice the model exhibits a systemic
bias toward short sequences. How should the decoding parameters
be structurally altered to mitigate this defect?
A) Decrease the beam width parameter to 1 to force greedy search
path selection.
B) Implement a length normalization penalty parameter (α > 0) to
divide the cumulative log-probability by the sequence length raised

Document information

Uploaded on
September 5, 2026
Number of pages
97
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$34.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
102
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions