1. Home
  2. Explore
  3. Computer Science
  4. Natural Language Processing

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Natural Language Processing

  • 71Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Language Foundations
The field concerned with enabling computers to work with human language is called
.

71 questions

  1. 1
    The 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

  2. 2
    The 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

  3. 3
    The 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

  4. 4
    Translating 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

  5. 5
    The 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

  6. 6
    Assigning 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

  7. 7
    The aspect of language concerned with its structure and arrangement is called
    _____
    .
    Hint

    It concerns how words form a well-structured sentence.

    Answer

    syntax

  8. 8
    The 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

  9. 9
    A 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

  10. 10
    The 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

  11. 11
    A formal grammar is a system of rules for
    _____
    sentences in a language.
    Hint

    The grammar specifies how valid sentences can be produced.

    Answer

    generating

  12. 12
    A 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

  13. 13
    Words 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

  14. 14
    Symbols 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

  15. 15
    In the grammar described, the symbol D represents a
    _____
    .
    Hint

    Examples include the, a, and an.

    Answer

    determiner

  16. 16
    The 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

  17. 17
    The 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

  18. 18
    A 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

  19. 19
    The 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

  20. 20
    The Python library used to parse context-free grammars and process natural language is
    _____
    .
    Hint

    Its full name is the Natural Language Toolkit.

    Answer

    NLTK

  21. 21
    A grammar that includes AP and PP adds adjective phrases and
    _____
    phrases.
    Hint

    PP is the abbreviation for this type of phrase.

    Answer

    prepositional

  22. 22
    When 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

  23. 23
    An 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

  24. 24
    An n-gram containing two words is called a
    _____
    .
    Hint

    The prefix bi- means two.

    Answer

    bigram

  25. 25
    An n-gram containing three words is called a
    _____
    .
    Hint

    The prefix tri- means three.

    Answer

    trigram

  26. 26
    The 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

  27. 27
    A 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

  28. 28
    Counting 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

  29. 29
    A 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

  30. 30
    A 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

  31. 31
    Text 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

  32. 32
    The bag-of-words model represents text as an unordered collection of
    _____
    .
    Hint

    It deliberately ignores which word came first, second, or third.

    Answer

    words

  33. 33
    Determining 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

  34. 34
    A Naive Bayes classifier classifies text using
    _____
    rule.
    Hint

    This probability rule relates conditional and joint probabilities.

    Answer

    Bayes

  35. 35
    The 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

  36. 36
    The 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

  37. 37
    The 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

  38. 38
    After 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

  39. 39
    Adding 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

  40. 40
    The 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

  41. 41
    A 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

  42. 42
    A 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

  43. 43
    One-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

  44. 44
    A 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

  45. 45
    The 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

  46. 46
    The 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

  47. 47
    In word2vec, words with similar meanings are trained to have
    _____
    vector representations.
    Hint

    Breakfast, lunch, and dinner tend to occur in similar contexts.

    Answer

    similar

  48. 48
    The 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

  49. 49
    In 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

  50. 50
    The 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

  51. 51
    A special token used to indicate that no input remains is an
    _____
    token.
    Hint

    It signals completion of the input sequence.

    Answer

    end

  52. 52
    A recurrent neural network generates a sequence by running the same neural network
    _____
    times.
    Hint

    Each run processes another value in the sequence.

    Answer

    multiple

  53. 53
    The 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

  54. 54
    Attention 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

  55. 55
    The 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

  56. 56
    Attention 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

  57. 57
    Attention 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

  58. 58
    In 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

  59. 59
    A 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

  60. 60
    The 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

  61. 61
    Because 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

  62. 62
    Transformer 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

  63. 63
    Using several attention mechanisms simultaneously is called
    _____
    Attention.
    Hint

    Each attention head can focus on a different aspect of the input.

    Answer

    Multi-Headed

  64. 64
    In 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

  65. 65
    Transformers 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

  66. 66
    The 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

  67. 67
    AI 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

  68. 68
    When an AI system is uncertain, it commonly represents possibilities using
    _____
    .
    Hint

    This mathematical framework expresses degrees of certainty.

    Answer

    probability

  69. 69
    Optimization problems ask an AI system to maximize or
    _____
    a function.
    Hint

    The two goals are finding the greatest or smallest value.

    Answer

    minimize

  70. 70
    Machine learning enables systems to identify patterns by learning from
    _____
    data.
    Hint

    The examples supplied to the model guide what it learns.

    Answer

    training

  71. 71
    A neural network learns by adjusting the
    _____
    inside its units or connections.
    Hint

    These numerical parameters control how inputs are transformed into outputs.

    Answer

    weights

1 of 71
Question 1 of 71

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent