Natural Language Processing
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
71 questions
- 1The field concerned with enabling computers to work with human language is called_____.
Hint
It includes tasks such as translation, summarization, and question answering.
Answer
natural language processing
- 2The task of producing a shorter representation of a long text is called_____.
Hint
The computer condenses a long document into a shorter version.
Answer
automatic summarization
- 3The NLP task of extracting relevant facts or details from text is called_____.
Hint
The computer pulls specific information out of a document.
Answer
information extraction
- 4Translating text from one language into another, such as with Google Translate, is called_____.
Hint
This task changes the language while preserving the intended content.
Answer
machine translation
- 5The NLP task in which a computer produces a response to a user-provided question is called_____.
Hint
AI chatbots and voice assistants commonly perform this task.
Answer
question answering
- 6Assigning labels such as positive or negative, or inbox or spam, to text is called_____.
Hint
The computer places text into a category.
Answer
text classification
- 7The aspect of language concerned with its structure and arrangement is called_____.
Hint
It concerns how words form a well-structured sentence.
Answer
syntax
- 8The aspect of language concerned with the meaning of words and sentences is called_____.
Hint
It asks what a sentence or word means rather than how it is structured.
Answer
semantics
- 9A sentence can be syntactically valid yet meaningless, as illustrated by Chomsky's sentence_____.
Hint
This famous example has correct grammatical structure but no coherent overall meaning.
Answer
Colorless green ideas sleep furiously
- 10The fact that one sentence can have multiple valid interpretations demonstrates that natural language is_____.
Hint
The sentence about seeing a man with a telescope has two possible meanings.
Answer
ambiguous
- 11A formal grammar is a system of rules for_____sentences in a language.
Hint
The grammar specifies how valid sentences can be produced.
Answer
generating
- 12A grammar that uses rules in which a symbol can be replaced according to formal production rules is a_____grammar.
Hint
The lesson focuses on a particular type of formal grammar abbreviated CFG.
Answer
context-free
- 13Words such as she, city, and walked that cannot be expanded further in a grammar are called_____symbols.
Hint
Once the computer generates these symbols, generation is complete.
Answer
terminal
- 14Symbols such as N, V, and D that generate terminal symbols are called_____symbols.
Hint
These symbols represent grammatical categories rather than final words.
Answer
nonterminal
- 15In the grammar described, the symbol D represents a_____.
Hint
Examples include the, a, and an.
Answer
determiner
- 16The rule NP → N | D N states that a noun phrase can be a noun or a_____followed by a noun.
Hint
The second option generates phrases such as the city.
Answer
determiner
- 17The phrase the city is a noun phrase consisting of a determiner and a_____.
Hint
City is the word naming a person, place, thing, or idea.
Answer
noun
- 18A verb phrase can consist of a verb or a verb followed by a_____.
Hint
The phrase saw the city contains a verb followed by a larger phrase.
Answer
noun phrase
- 19The grammar defines a sentence as a_____followed by a verb phrase.
Hint
In she saw the city, she fills this first grammatical role.
Answer
noun phrase
- 20The Python library used to parse context-free grammars and process natural language is_____.
Hint
Its full name is the Natural Language Toolkit.
Answer
NLTK
- 21A grammar that includes AP and PP adds adjective phrases and_____phrases.
Hint
PP is the abbreviation for this type of phrase.
Answer
prepositional
- 22When NLTK produces multiple syntax trees for a sentence, it is representing the sentence's structural_____.
Hint
The sentence about the dog with the binoculars has two possible attachments.
Answer
ambiguity
- 23An n-gram is a contiguous sequence of_____items from a sample of text.
Hint
The value of this variable determines the length of the sequence.
Answer
n
- 24An n-gram containing two words is called a_____.
Hint
The prefix bi- means two.
Answer
bigram
- 25An n-gram containing three words is called a_____.
Hint
The prefix tri- means three.
Answer
trigram
- 26The process of splitting a sequence of characters into pieces such as individual words is called_____.
Hint
It converts a long text sequence into smaller units called tokens.
Answer
tokenization
- 27A large collection of text used for statistical language analysis is called a_____.
Hint
The Sherlock Holmes stories form an example of this collection.
Answer
corpus
- 28Counting the most common n-grams in a corpus helps a computer learn which word sequences tend to appear_____to each other.
Hint
The sequences are studied as neighboring words in text.
Answer
next
- 29A Markov chain predicts a value based on the values that came_____it.
Hint
It uses preceding states or words to predict the next one.
Answer
before
- 30A language Markov chain can generate text by predicting what word is likely to come_____in a sequence.
Hint
It uses observed n-gram patterns to continue the text.
Answer
next
- 31Text generated solely from statistical n-gram patterns may follow language statistics without having meaningful_____.
Hint
The generated sentences may sound statistically plausible but make no sense.
Answer
meaning
- 32The bag-of-words model represents text as an unordered collection of_____.
Hint
It deliberately ignores which word came first, second, or third.
Answer
words
- 33Determining whether a product review is positive or negative is an example of_____analysis.
Hint
This task identifies the emotional evaluation expressed in text.
Answer
sentiment
- 34A Naive Bayes classifier classifies text using_____rule.
Hint
This probability rule relates conditional and joint probabilities.
Answer
Bayes
- 35The naive assumption is that the words in a review are_____of one another given the sentiment category.
Hint
The model assumes that one word does not change the probability of another word once the sentiment is known.
Answer
independent
- 36The prior probability that a review is positive can be estimated by dividing the number of positive samples by the_____number of samples.
Hint
The denominator counts every labeled training example.
Answer
total
- 37The conditional probability of a word given positive sentiment can be estimated by dividing positive samples containing the word by the total number of_____samples.
Hint
The denominator is restricted to reviews in the positive class.
Answer
positive
- 38After removing the common denominator in the positive-versus-negative comparison, the resulting values must be_____so that they sum to one.
Hint
This converts proportional scores into a probability distribution.
Answer
normalized
- 39Adding a value to every probability count to avoid zero probabilities is called additive_____.
Hint
It makes the distribution less vulnerable to unseen words.
Answer
smoothing
- 40The common form of additive smoothing that adds 1 to each count is called_____smoothing.
Hint
It is named after the mathematician associated with this technique.
Answer
Laplace
- 41A one-hot representation encodes a word with one value of 1 and all remaining values equal to_____.
Hint
Only the position assigned to that word is active.
Answer
0
- 42A major problem with one-hot vectors for large vocabularies is that they become very_____.
Hint
A distinct position is needed for every possible word.
Answer
long
- 43One-hot representations fail to place words with similar meanings near each other in_____space.
Hint
Words such as wrote and authored receive unrelated coordinate positions.
Answer
vector
- 44A representation in which word meaning is spread across multiple numerical values is called a_____representation.
Hint
It contrasts with assigning one active position in a one-hot vector.
Answer
distributed
- 45The idea that a word's meaning can be inferred from the words that appear around it is summarized by the phrase, 'You shall know a word by the_____it keeps.'
Hint
The phrase refers to neighboring or contextual words.
Answer
company
- 46The word2vec model generates word vectors by examining the_____in which words appear.
Hint
Words appearing in similar surroundings are expected to have similar meanings.
Answer
context
- 47In word2vec, words with similar meanings are trained to have_____vector representations.
Hint
Breakfast, lunch, and dinner tend to occur in similar contexts.
Answer
similar
- 48The word2vec relationship in which king minus man plus woman is closest to queen demonstrates that word vectors can represent relationships between_____.
Hint
The model captures more than simple word similarity.
Answer
words
- 49In an encoder-decoder recurrent neural network, information passed from one run to the next is called the_____state.
Hint
It stores relevant information about the sequence processed so far.
Answer
hidden
- 50The encoder-decoder architecture first encodes an input sequence and then uses a_____to produce the output sequence.
Hint
The second component converts the encoded information into generated output.
Answer
decoder
- 51A special token used to indicate that no input remains is an_____token.
Hint
It signals completion of the input sequence.
Answer
end
- 52A recurrent neural network generates a sequence by running the same neural network_____times.
Hint
Each run processes another value in the sequence.
Answer
multiple
- 53The problem of compressing an increasingly long input into one final hidden state is that the state must contain_____the information needed for output generation.
Hint
Longer sequences make this single-context bottleneck increasingly difficult.
Answer
all
- 54Attention assigns a score to each input word indicating how_____it is to the current output word.
Hint
The score determines how strongly the decoder should focus on that word.
Answer
relevant
- 55The context vector produced by attention is calculated as a_____average of the input hidden-state vectors.
Hint
Each vector contributes according to its attention score.
Answer
weighted
- 56Attention is useful because different output words may need to focus on different_____words.
Hint
When generating Boston, capital and Massachusetts may receive high scores.
Answer
input
- 57Attention scores can be calculated using a dot product or by training an entire_____network.
Hint
The second option learns how to determine relevance.
Answer
neural
- 58In machine translation, attention scores can be visualized so that lighter squares indicate a_____attention score.
Hint
A lighter region shows a stronger correspondence between input and output words.
Answer
higher
- 59A key limitation of recurrent neural networks is that their sequential dependence makes them difficult to_____.
Hint
Each step must wait for the hidden state from the previous step.
Answer
parallelize
- 60The architecture introduced to improve parallel processing of language sequences is the_____architecture.
Hint
It relies heavily on attention rather than recurrent sequential processing.
Answer
Transformer
- 61Because Transformers process words independently, they add a_____encoding to preserve word order.
Hint
This vector represents whether a word is first, second, third, and so on.
Answer
positional
- 62Transformer self-attention allows each input word to decide which other_____words are important for its representation.
Hint
The word uses the surrounding context to refine its meaning.
Answer
input
- 63Using several attention mechanisms simultaneously is called_____Attention.
Hint
Each attention head can focus on a different aspect of the input.
Answer
Multi-Headed
- 64In a Transformer decoder, an additional attention step allows output words to attend to the encoder's_____representations.
Hint
These representations contain information about the input sequence.
Answer
encoded
- 65Transformers can be trained more efficiently than recurrent models because their operations can be more easily_____.
Hint
Many words can be processed at the same time rather than strictly in sequence.
Answer
parallelized
- 66The AI approach that searches for solutions, plays games, and finds optimal decisions is based on_____problems.
Hint
It explores possible states or actions to find a solution.
Answer
search
- 67AI systems that represent known information and use it to generate new information are working with_____.
Hint
This area concerns representing facts and reasoning from them.
Answer
knowledge
- 68When an AI system is uncertain, it commonly represents possibilities using_____.
Hint
This mathematical framework expresses degrees of certainty.
Answer
probability
- 69Optimization problems ask an AI system to maximize or_____a function.
Hint
The two goals are finding the greatest or smallest value.
Answer
minimize
- 70Machine learning enables systems to identify patterns by learning from_____data.
Hint
The examples supplied to the model guide what it learns.
Answer
training
- 71A neural network learns by adjusting the_____inside its units or connections.
Hint
These numerical parameters control how inputs are transformed into outputs.
Answer
weights

Ask anything
We've read this whole study set, so questions about it get the best answers.