Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Which decade is generally considered the starting point of Natural Language Processing, marked by Alan Turing's publication on machine intelligence?
Not quite. Try another option.
Answer: 1950s
The history of NLP generally began in the 1950s. Alan Turing published an article titled 'Computing Machinery and Intelligence' in 1950, which proposed what is now called the Turing Test.
Question 2 of 60 · language and grammar · Easy
What defines the set of structural rules governing the composition of clauses, phrases, and words in any given natural language?
Not quite. Try another option.
Answer: Grammar
Grammar represents the rules for constructing valid sentences and structures in a language.
Question 3 of 60 · morphology · Easy
What is defined as the study of the internal structure of words and how they are formed?
Not quite. Try another option.
Answer: Morphology
Morphology is the sub-discipline of linguistics that studies word structure, including stems, root words, prefixes, and suffixes.
Question 4 of 60 · syntax · Easy
Which level of linguistic analysis focuses specifically on the order of words and how they combine to form sentences?
Not quite. Try another option.
Answer: Syntax
Syntax is concerned with sentence structure, specifically how words are ordered and grouped together.
Question 5 of 60 · semantics · Easy
What is the primary focus of semantics in Natural Language Processing?
Not quite. Try another option.
Answer: The literal meaning of words and sentences
Semantics is the study of meaning in language, focusing on how words, phrases, and sentences convey literal meaning.
Question 6 of 60 · challenges of NLP · Easy
Which of the following describes 'ambiguity' in Natural Language Processing?
Not quite. Try another option.
Answer: A sentence or word having multiple possible meanings
Ambiguity occurs when a phrase or word can be interpreted in more than one way, which is a major challenge in NLP.
Question 7 of 60 · applications of NLP · Easy
Which of the following is a common application of NLP?
Not quite. Try another option.
Answer: Machine Translation
Machine Translation, like translating text from English to French, is a classic and widely used application of NLP.
Question 8 of 60 · tokenization · Easy
What is the process of breaking down a continuous stream of text into smaller units like words or sentences?
Not quite. Try another option.
Answer: Tokenization
Tokenization is the foundational step in text processing where text is divided into smaller pieces called tokens.
Question 9 of 60 · stemming · Easy
What is the primary purpose of stemming in text processing?
Not quite. Try another option.
Answer: To chop off affixes to reduce a word to its root form
Stemming is a crude heuristic process that chops off the ends of words to reduce them to a common base or root form.
Question 10 of 60 · lemmatization · Easy
How does lemmatization primarily differ from stemming?
Not quite. Try another option.
Answer: Lemmatization uses a vocabulary and morphological analysis to return a valid dictionary word.
Unlike stemming, which just chops off characters, lemmatization considers the context and converts the word to its meaningful base form (lemma) found in the dictionary.
Question 11 of 60 · stop-word removal · Easy
What are stop-words in the context of NLP preprocessing?
Not quite. Try another option.
Answer: Highly frequent words that carry very little semantic meaning, like 'the' and 'is'
Stop-words are common words that are often removed during preprocessing because they do not add significant meaning to the text.
Question 12 of 60 · punctuation handling · Easy
Why is punctuation handling an important step in text preprocessing?
Not quite. Try another option.
Answer: To prevent punctuation marks from being incorrectly attached to words as part of the token
Removing or handling punctuation ensures that words like 'hello!' and 'hello' are treated as the same token rather than two distinct vocabulary items.
Question 13 of 60 · handling out-of-vocabulary words · Easy
What does OOV stand for in Natural Language Processing?
Not quite. Try another option.
Answer: Out-Of-Vocabulary
OOV stands for Out-Of-Vocabulary, referring to words that appear in the testing data or real-world input but were not present in the model's training dictionary.
Question 14 of 60 · normalization · Easy
Which of the following is a classic example of text normalization?
Not quite. Try another option.
Answer: Converting all text to lowercase
Text normalization transforms text into a standard format, such as converting all uppercase characters to lowercase, to reduce variation.
Question 15 of 60 · Bag-of-Words · Easy
What major linguistic feature does the basic Bag-of-Words (BoW) model ignore?
Not quite. Try another option.
Answer: Word order and context
The Bag-of-Words model represents text as a multiset (bag) of its words, keeping track of frequency but completely ignoring grammar and word order.
Question 16 of 60 · n-grams · Easy
In the context of n-grams, what is a 'bigram'?
Not quite. Try another option.
Answer: A sequence of two consecutive words
An n-gram is a contiguous sequence of n items from a text. When n=2, it is called a bigram, meaning two consecutive words.
Question 17 of 60 · TF-IDF · Easy
What does 'TF' stand for in the TF-IDF representation?
Not quite. Try another option.
Answer: Term Frequency
TF stands for Term Frequency, which measures how frequently a term occurs in a specific document.
Question 18 of 60 · TF-IDF · Easy
What is the main purpose of the Inverse Document Frequency (IDF) component in TF-IDF?
Not quite. Try another option.
Answer: To reduce the weight of words that appear in many documents across the corpus
IDF diminishes the weight of terms that occur very frequently in the document set (like 'the', 'is') and increases the weight of terms that occur rarely, helping to highlight unique terms.
Question 19 of 60 · linguistic essentials · Easy
What is a 'phoneme' in linguistics?
Not quite. Try another option.
Answer: The smallest unit of sound that distinguishes one word from another
A phoneme is a basic unit of a language's phonology, representing the smallest unit of sound (like /p/ or /b/) that can differentiate words.
Question 20 of 60 · origin of NLP · Easy
Which famous 1954 experiment provided a highly publicized demonstration of machine translation, translating Russian sentences into English?
Not quite. Try another option.
Answer: The Georgetown-IBM experiment
The Georgetown-IBM experiment in 1954 was a foundational event in NLP history, demonstrating the automatic translation of more than sixty Russian sentences into English.
Question 21 of 60 · origin of NLP · Medium
Early NLP systems like ELIZA (1966) simulated conversation using pattern matching. What was the primary limitation of this approach regarding natural language understanding?
Not quite. Try another option.
Answer: It possessed no actual understanding of syntactic structure or semantic meaning.
ELIZA operated on simple pattern matching and substitution methodologies without parsing the grammatical structure or grasping the semantic meaning of the text.
Question 22 of 60 · language and grammar · Medium
If an NLP system uses Context-Free Grammar (CFG) to parse sentences, which of the following phenomena is most challenging for it to handle efficiently?
Not quite. Try another option.
Answer: Context-sensitive dependencies, such as cross-serial dependencies.
Context-Free Grammars are limited in their generative capacity and cannot naturally model cross-serial dependencies or context-sensitive rules without becoming overly complex.
Question 23 of 60 · linguistic essentials · Medium
Consider the sentence: 'Can you pass the salt?' While syntactically a question, it functions as a request. Which linguistic level of analysis is required to understand this intended meaning?
Not quite. Try another option.
Answer: Pragmatics
Pragmatics deals with how context influences meaning, allowing us to interpret a literal question as a polite request.
Question 24 of 60 · morphology · Medium
Analyze the words 'running' and 'runner'. Which of the following statements correctly identifies the morphological processes applied to the root word 'run'?
Not quite. Try another option.
Answer: 'Running' uses inflectional morphology, while 'runner' uses derivational morphology.
Inflectional morphology adapts a word to its grammatical role (run -> running), while derivational morphology creates a new word with a different part of speech or core meaning (run -> runner).
Question 25 of 60 · syntax · Medium
The sentence 'I saw the man with the telescope' exhibits structural ambiguity. Which NLP task is directly responsible for resolving how 'with the telescope' attaches to the rest of the sentence?
Not quite. Try another option.
Answer: Dependency parsing
Dependency parsing (or syntactic parsing) determines the grammatical structure of a sentence, including prepositional phrase attachment, thereby resolving structural ambiguities.
Question 26 of 60 · semantics · Medium
When building a word sense disambiguation model, you encounter the word 'bank' in the contexts of 'river bank' and 'bank account'. This is an example of dealing with which semantic concept?
Not quite. Try another option.
Answer: Polysemy/Homonymy
Homonymy and polysemy refer to words that share the same spelling or pronunciation but have different meanings, which requires disambiguation based on context.
Question 27 of 60 · challenges of NLP · Medium
In the sentence 'John told his father that he was promoted', the pronoun 'he' is ambiguous. Resolving whether 'he' refers to John or his father is an example of which NLP challenge?
Not quite. Try another option.
Answer: Coreference resolution
Coreference resolution is the task of finding all expressions in a text that refer to the same entity, such as determining the antecedent of a pronoun.
Question 28 of 60 · applications of NLP · Medium
If you are designing an NLP pipeline for a conversational AI (chatbot) meant to book flights, which sequence of applications is most logical for processing user input?
Not quite. Try another option.
Answer: Intent Recognition -> Named Entity Recognition -> Dialog Management
A task-oriented chatbot first needs to understand what the user wants (Intent Recognition), extract relevant details like dates and locations (NER), and decide how to respond (Dialog Management).
Question 29 of 60 · tokenization · Medium
Using Byte Pair Encoding (BPE) for tokenization helps mitigate which specific problem compared to standard word-level tokenization?
Not quite. Try another option.
Answer: It effectively manages out-of-vocabulary (OOV) and rare words by breaking them into known subwords.
BPE is a subword tokenization algorithm that creates tokens for frequent character sequences, allowing the model to construct rare or unknown words from smaller, known subword pieces.
Question 30 of 60 · stemming · Medium
An algorithm reduces both 'university' and 'universal' to the stem 'univers'. What type of stemming error has occurred, and why is it problematic for downstream tasks?
Not quite. Try another option.
Answer: Over-stemming; words with different meanings are conflated into the same token.
Over-stemming occurs when words that have different meanings are reduced to the same stem, which can confuse downstream models relying on semantic differences.
Question 31 of 60 · lemmatization · Medium
Unlike a standard stemmer, a lemmatizer typically requires which piece of additional information to accurately reduce the word 'saw' to its root form?
Not quite. Try another option.
Answer: The Part-of-Speech (POS) tag of the word in its context.
Lemmatization uses vocabulary and morphological analysis, meaning it needs to know whether 'saw' is a noun (a tool) or a verb (past tense of see) to return the correct lemma.
Question 32 of 60 · stop-word removal · Medium
In which of the following NLP tasks is aggressive stop-word removal most likely to degrade model performance?
Not quite. Try another option.
Answer: Machine Translation (e.g., translating English to French).
Machine translation relies heavily on syntax, grammar, and function words to generate fluent and accurate sentences. Removing stop words would destroy the grammatical structure.
Question 33 of 60 · punctuation handling · Medium
When designing a regular expression-based tokenizer, dealing with punctuation can be tricky. Which of the following examples best demonstrates why simply splitting text on all punctuation characters is a poor strategy?
Simply splitting on all punctuation destroys meaningful linguistic constructs like contractions ('s) and hyphenated compound words (state-of-the-art), losing semantic context.
Question 34 of 60 · handling out-of-vocabulary words · Medium
A model trained on a specific corpus encounters a new word during testing. If the model uses a fixed word-level vocabulary with a single <UNK> token, how does it process the new word?
Not quite. Try another option.
Answer: It maps the word to the <UNK> token, treating all unknown words identically.
In standard word-level models with a fixed vocabulary, any out-of-vocabulary word is mapped to a universal <UNK> (unknown) token, meaning the model loses any specific information about that word.
Question 35 of 60 · normalization · Medium
Which of the following scenarios demonstrates a potential negative consequence of applying universal case folding (lowercasing all text) during text normalization?
Not quite. Try another option.
Answer: 'apple' (fruit) and 'Apple' (company) are mapped to the same token, losing distinction.
Case folding can destroy the distinction between proper nouns (Apple the company) and common nouns (apple the fruit), which can be detrimental for tasks like Named Entity Recognition.
Question 36 of 60 · Bag-of-Words · Medium
Given a vocabulary of size , you represent a 50-word sentence using a standard Bag-of-Words (BoW) vector. What is the dimension of the resulting vector, and what is its primary characteristic?
Not quite. Try another option.
Answer: Dimension is 10,000; the vector is highly sparse.
A BoW vector has a length equal to the vocabulary size (). Since the sentence only has 50 words, most of the 10,000 entries will be zero, making the vector highly sparse.
Question 37 of 60 · n-grams · Medium
Consider a sentence containing exactly words. If we extract standard continuous trigrams (n=3) from this sentence, how many trigram tokens will be generated? (Assume )
Not quite. Try another option.
Answer:
For a sequence of length , the number of n-grams produced is . For trigrams (), this evaluates to .
Question 38 of 60 · TF-IDF · Medium
In the TF-IDF formulation, the Inverse Document Frequency (IDF) of a term is often calculated as . If a specific stop-word appears in every single document in a corpus of size , what will its IDF value be?
Not quite. Try another option.
Answer:
If the term appears in all documents, . The formula becomes . This mathematically nullifies the importance of uninformative words.
Question 39 of 60 · TF-IDF · Medium
Suppose document A has 100 words, and the word 'AI' appears 5 times. Document B has 500 words, and 'AI' appears 15 times. Using basic Term Frequency (count divided by document length), which document gives higher TF to the word 'AI'?
Not quite. Try another option.
Answer: Document A, because its TF is , compared to Document B's TF of .
Normalized Term Frequency is calculated as (Term Count / Total Words). For Doc A: . For Doc B: . Thus, Doc A has a higher TF.
Question 40 of 60 · n-grams · Medium
When training an n-gram language model, sparsity becomes a major issue for higher values of . Which technique is commonly applied to handle -grams that appear in the test set but were never seen in the training set?
Not quite. Try another option.
Answer: Laplace (Add-1) Smoothing or Backoff
Smoothing techniques (like Add-1) or Backoff (reverting to a lower-order n-gram) are used to assign non-zero probabilities to unseen n-grams, resolving the zero-frequency problem.
Question 41 of 60 · origin of NLP · Hard
Which of the following best characterizes the primary historical consequence of the 1966 ALPAC (Automatic Language Processing Advisory Committee) report on the early trajectory of Natural Language Processing?
Not quite. Try another option.
Answer: It caused a drastic reduction in funding for machine translation research by concluding that fully automatic high-quality translation was unattainable in the near future.
The 1966 ALPAC report concluded that machine translation was more expensive, less accurate, and slower than human translation. This led to a significant defunding of NLP and AI research in the US, known as the first 'AI Winter' for machine translation.
Question 42 of 60 · language and grammar · Hard
Natural languages exhibit phenomena such as center embedding (e.g., "The mouse the cat the dog bit chased ran away"). In the context of the Chomsky hierarchy, what does the theoretical existence of arbitrary-depth center embedding imply about human language?
Not quite. Try another option.
Answer: It demonstrates that natural languages cannot be completely modeled by Regular Grammars and require at least Context-Free Grammars.
Center embedding creates structures of the form , which require a pushdown automaton to keep track of nested dependencies. Because finite-state automata lack memory to track arbitrary depths of nesting, Regular Grammars are insufficient.
Question 43 of 60 · morphology · Hard
Consider the morphological transformation from the root word "compute" to the word "computational". Which sequence of morphological processes accurately characterizes this transition?
Not quite. Try another option.
Answer: Multiple derivational affixes applied sequentially, changing both the semantic meaning and the syntactic category (verb noun adjective).
The root 'compute' (verb) takes the derivational suffix '-ation' to become 'computation' (noun), which then takes another derivational suffix '-al' to become 'computational' (adjective). Derivational morphology alters the syntactic category and core meaning.
Question 44 of 60 · syntax · Hard
The sentence "I saw the man with the telescope" exhibits severe structural ambiguity. In a Probabilistic Context-Free Grammar (PCFG), how is the correct parse tree mathematically resolved during syntactic inference?
Not quite. Try another option.
Answer: By computing the parse tree that maximizes the joint probability of the structural derivations given the lexical observations , often using the CYK algorithm.
In PCFGs, ambiguity is resolved by calculating the probability of all possible parse trees for a given sentence and selecting the one with the highest probability, typically calculated using dynamic programming approaches like the Cocke-Younger-Kasami (CYK) algorithm.
Question 45 of 60 · semantics · Hard
The Principle of Compositionality asserts that the meaning of a complex expression is determined by the meanings of its constituent expressions and the rules used to combine them. Which of the following linguistic phenomena breaks this principle, requiring specialized representation in vector space models?
Not quite. Try another option.
Answer: Non-compositional multi-word expressions (idioms), where the overarching semantic meaning is decoupled from the literal constituent semantics.
Idioms (e.g., 'kick the bucket') violate the Principle of Compositionality because their meaning cannot be deduced by mathematically combining the meaning of their constituent words ('kick', 'the', 'bucket').
Question 46 of 60 · challenges of NLP · Hard
The Winograd Schema Challenge (e.g., "The trophy didn't fit into the brown suitcase because it was too large.") is designed to test machine intelligence. What specific NLP challenge does this schema fundamentally target?
Not quite. Try another option.
Answer: Coreference resolution that strictly requires world knowledge and common-sense reasoning.
Winograd Schemas require the model to resolve pronouns (coreference resolution) where syntactic and semantic rules alone are insufficient. The model must utilize common-sense reasoning (knowing that a trophy being too large prevents it from fitting into a suitcase) to determine what 'it' refers to.
Question 47 of 60 · tokenization · Hard
When applying Byte-Pair Encoding (BPE) tokenization to a highly agglutinative language like Turkish or Finnish, what is the primary mathematical and practical advantage over strict word-level tokenization in deep learning models?
Not quite. Try another option.
Answer: It mitigates the sparse vocabulary problem by decomposing rare morphological variations into statistically frequent, reusable subword units.
Agglutinative languages generate a massive number of unique word forms, leading to sparse vocabularies and out-of-vocabulary (OOV) issues in word-level models. BPE circumvents this by representing rare or complex words as combinations of highly frequent subwords.
Question 48 of 60 · stemming · Hard
Which of the following scenarios is a canonical example of "over-stemming" (a false positive reduction) resulting from the heuristic rules of algorithms like the Porter Stemmer?
Not quite. Try another option.
Answer: Mapping the words "universe" and "university" to the single stem "univers".
Over-stemming occurs when two words with distinct semantic meanings are incorrectly reduced to the same stem. 'Universe' and 'university' mean different things, but aggressive suffix stripping collapses them to 'univers', destroying semantic distinction.
Question 49 of 60 · lemmatization · Hard
Unlike algorithmic stemming, dictionary-based lemmatization relies heavily on accurate Part-of-Speech (POS) tagging. Given a standard WordNet Lemmatizer, what is the expected outcome if the word "saw" in the sentence "He used a saw" is incorrectly tagged as a verb prior to lemmatization?
Not quite. Try another option.
Answer: The lemmatizer will map "saw" to "see", thereby corrupting the downstream semantic representation of the tool.
Lemmatizers look up words based on their token and provided POS tag. If 'saw' is tagged as a verb, the lemmatizer looks for the base form of the verb 'saw', which is 'see'. This results in an incorrect lemma for the noun 'saw'.
Question 50 of 60 · stop-word removal · Hard
While traditionally beneficial for Information Retrieval, aggressive stop-word removal severely degrades performance in certain modern NLP tasks. In which of the following tasks would stripping stop-words (e.g., "the", "is", "not") be most disastrous for model inference, and why?
Not quite. Try another option.
Answer: Sentiment Analysis involving double negatives, because removing function words obliterates the compositionality of negation context.
Words like 'not', 'no', and 'very' are often categorized as stop-words. Removing them flips or alters the polarity and intensity of a sentence (e.g., 'not good' becomes 'good'), severely destroying the semantic context needed for Sentiment Analysis.
Question 51 of 60 · punctuation handling · Hard
In clinical NLP, uniformly stripping all punctuation can lead to catastrophic semantic loss. Which of the following exemplifies a structural edge case where a punctuation mark functions as a critical semantic token rather than merely a syntactic boundary?
Not quite. Try another option.
Answer: The use of periods in identifying specific ICD-10 medical codes (e.g., J45.909).
In clinical domains, periods and other punctuation within standardized codes (like ICD-10) define specific hierarchical classifications. Stripping them merges domains and alters the recognized token fundamentally (e.g., J45909 is an invalid or misaligned format).
Question 52 of 60 · handling out-of-vocabulary words · Hard
The FastText model fundamentally improves upon the standard Word2Vec architecture primarily in its handling of Out-Of-Vocabulary (OOV) words. What is the mathematical mechanism by which FastText accomplishes this?
Not quite. Try another option.
Answer: By representing target words as the sum of the learned vectors of their constituent character -grams, enabling vector approximation for unseen words.
FastText breaks words down into subword character -grams (e.g., for 'apple': '<ap', 'app', 'ppl', 'ple', 'le>'). The vector for a word is the sum of its -gram vectors. This allows the model to estimate vectors for unseen OOV words by summing the vectors of their known character -grams.
Question 53 of 60 · normalization · Hard
When preprocessing noisy multilingual text, what is the specific role of Unicode Normalization Form KC (NFKC) compared to NFC, and why is this critical for NLP normalization?
Not quite. Try another option.
Answer: NFKC applies compatibility decomposition followed by canonical composition, merging visually or functionally identical but uniquely encoded characters (e.g., ligatures and full-width forms), thus reducing vocabulary sparsity.
NFKC breaks down characters into compatibility equivalents (e.g., turning the 'fi' ligature into 'f' and 'i', or full-width Latin characters into standard Latin characters) and then composes them. This standardizes text and collapses disparate encodings of the 'same' text, significantly reducing vocabulary sparsity.
Question 54 of 60 · Bag-of-Words · Hard
Given two documents represented as standard Bag-of-Words (BoW) frequency vectors and , the raw dot product inherently scales with document length, skewing similarity metrics. Which normalization mathematically transforms these vectors such that their dot product strictly equals their angular cosine similarity?
Not quite. Try another option.
Answer: L2 Normalization: and .
Cosine similarity is defined as . If you L2-normalize vectors and prior to taking the dot product, the denominators become 1, and the dot product exactly equals the cosine similarity.
Question 55 of 60 · n-grams · Hard
In an -gram language model with a vocabulary size , the transition from bigrams to trigrams drastically exacerbates data sparsity. Which advanced smoothing technique addresses this by utilizing absolute discounting combined with an interpolation weight that falls back to lower-order models based on the diversity of contexts a word appears in?
Not quite. Try another option.
Answer: Kneser-Ney Smoothing
Kneser-Ney smoothing fundamentally improves upon standard absolute discounting by taking into account the continuation probability—how many different contexts a word appears in. This allows the lower-order (fallback) models to assign higher probabilities to words that appear in versatile contexts.
Question 56 of 60 · TF-IDF · Hard
In the standard TF-IDF formulation, Inverse Document Frequency is often calculated as . If a term appears in every single document in a training corpus of size , what is the mathematical consequence on its TF-IDF weight, and how is this edge case typically mitigated in libraries like scikit-learn?
Not quite. Try another option.
Answer: The IDF becomes , zeroing out the entire TF-IDF weight; mitigated by adding a constant to the resulting IDF score: .
If , then . Since , the TF-IDF score for a word appearing in all documents becomes 0. Scikit-learn mitigates this by adding 1 to the IDF (smooth IDF) so terms appearing in all documents still carry their TF weight.
Question 57 of 60 · linguistic essentials · Hard
Zipf's Law states that the frequency of a word in a natural language corpus is inversely proportional to its rank , mathematically expressed as . In the context of NLP model training, what critical structural challenge does this empirical distribution formalize?
Not quite. Try another option.
Answer: It formalizes the heavy-tailed distribution of language, ensuring that any fixed-size vocabulary will inevitably encounter a high probability mass of rare and unseen Out-Of-Vocabulary (OOV) words.
Zipf's law describes a power-law distribution. While a few words (stop-words) are extremely frequent, there is a massive 'long tail' of rare words. This mathematically guarantees that no matter how large the vocabulary, unseen words will continuously appear in test data, forming the basis of the OOV problem.
Question 58 of 60 · TF-IDF · Hard
Consider a long document where the word "excellent" is repeated 100 times. Using standard Term Frequency (TF), the weight is , which can disproportionately dominate the document vector. To dampen this effect, sublinear TF scaling is often applied. Which of the following formulas represents the standard sublinear scaling for a raw term frequency ?
Not quite. Try another option.
Answer:
Sublinear TF scaling is implemented using logarithms to reduce the impact of very high term frequencies. The standard formulation is for terms that occur at least once, scaling a frequency of 100 down to a much more manageable weight (e.g., using base 10).
Question 59 of 60 · applications of NLP · Hard
While Named Entity Recognition (NER) is traditionally framed as a token-level sequence labeling task using architectures like BiLSTM-CRF, modern generative models occasionally reframe NER as a sequence-to-sequence generation task. What is the primary analytical trade-off (drawback) of this generative approach compared to strict token classification?
Not quite. Try another option.
Answer: Generative approaches are highly prone to hallucination, potentially generating entity spans that do not perfectly align with or exist in the exact source tokens.
Token-classification (like CRF) maps directly over the input tokens, ensuring entity spans strictly correspond to actual text. Generative seq2seq models emit entirely new tokens and can hallucinate words or alter spellings, causing extracted entities to misalign with the original source text.
Question 60 of 60 · n-grams · Hard
The perplexity of a test sequence under a bigram language model is defined as . If the un-smoothed language model assigns a probability of to a single unseen bigram in the test sequence, what mathematically happens to the perplexity, and what does this signify?
Not quite. Try another option.
Answer: The perplexity becomes infinite (), indicating that the model is entirely incapable of evaluating the test set without appropriate smoothing.
If a single bigram has probability , the overall sequence probability becomes . Raising to a negative power () is equivalent to division by zero, driving the perplexity to infinity. This demonstrates why smoothing is strictly mandatory for -gram models.
That's unit 1
Answer a few questions and your score shows up here.
Nearly through. Did unit 1 of CSE472 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 1 of CSE472 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.