L1 Foundations of Natural Language Processing

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/154

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:21 AM on 10/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

155 Terms

1
New cards

[T] What is Natural Language Processing (NLP)?

Developing software that interacts with users in natural language or analyzes large amounts of language data.

2
New cards

[F] What closely related field is mentioned alongside NLP?

Computational Linguistics.

3
New cards

[T] What are major examples of NLP applications introduced in Lecture 1?

Sentiment analysis, summarization, translation, dialogue systems, and question answering.

4
New cards

[T] What does sentiment analysis determine?

The sentiment/opinion expressed in text, such as whether customers feel positively, negatively, or neutrally about something.

5
New cards

[T] What does summarization do?

Produces a condensed representation of the important information in one or more texts.

6
New cards

[T] What does machine translation do?

Converts text from one natural language to another.

7
New cards

[T] What are two examples of dialogue systems from the lecture?

Personal assistants and chatbots.

8
New cards

[T] What does question answering (QA) aim to do?

Answer natural-language questions.

9
New cards

[F] What two NLP-adjacent tasks are mentioned?

Information Retrieval (IR) and speech processing.

10
New cards

[T] What are the four broad stages of the classic Watson-style QA system shown in the lecture?

  1. Question processing, 2. Candidate answer generation, 3. Candidate answer scoring, 4. Confidence merging and ranking.
11
New cards

[IT p.22] IMAGE: Classic QA system architecture

Be able to identify the overall flow: question processing → candidate answer generation → candidate answer scoring → confidence merging/ranking → answer.

12
New cards

[T] In a classic QA system, what happens during question processing?

The question is analyzed to determine information such as lexical answer type, question classification, parsing, named entities, and relations.

13
New cards

[T] In classic QA, what is candidate answer generation?

Retrieving or producing possible answers from text resources and/or structured data.

14
New cards

[T] In classic QA, what is candidate answer scoring?

Evaluating candidate answers using evidence and assigning scores.

15
New cards

[T] In classic QA, what is confidence merging and ranking?

Combining evidence/scores for equivalent answers and ranking candidates to produce the final answer.

16
New cards

[F] What kinds of answer types might a classic QA system identify?

Date, time, location, event, person, drug, etc.

17
New cards

[T] How do modern language-model-based QA systems differ broadly from classic QA pipelines?

Much of the linguistic processing and answer generation can be handled within a pretrained language model rather than by many manually separated modules.

18
New cards

[T] What does RAG stand for?

Retrieval-Augmented Generation.

19
New cards

[T] What is the basic idea of Retrieval-Augmented Generation (RAG)?

Retrieve relevant documents for a query and provide them to an LLM to help generate the answer.

20
New cards

[IT p.25] IMAGE: RAG architecture

Know the flow: source documents → encoder → vectorized index; query → encoder → matching → relevant documents → LLM → answer.

21
New cards

[A] Given a RAG diagram, where are source documents stored after encoding?

In a vectorized index.

22
New cards

[A] In RAG, what is matched against the vectorized index?

The encoded query.

23
New cards

[A] In RAG, what is passed to the LLM before it generates the answer?

Relevant retrieved documents.

24
New cards

[F] What example of complex QA/search is shown using Bing?

Breaking a complex question into simpler questions, retrieving answers for them, and merging the answers.

25
New cards

[T] Is question answering considered solved?

No.

26
New cards

[T] What major problem do LLM-based QA systems have?

Hallucination.

27
New cards

[T] What reasoning limitation of LLM-based QA systems is mentioned?

Limited reasoning abilities can hurt their ability to answer complex questions.

28
New cards

[T] Why can benchmark performance give a misleading picture of QA ability?

Systems are often tested on artificial benchmarks, and strong benchmark performance does not necessarily transfer to useful real-world applications.

29
New cards

[T] What are the major levels/components listed in the classic NLP pipeline?

Phonetics and phonology, morphology, syntax, semantics, pragmatics, and discourse/dialogue.

30
New cards

[T] What do phonetics and phonology concern?

Sounds.

31
New cards

[T] What does morphology concern?

The structure of words.

32
New cards

[T] What does syntax concern?

The structure of sentences.

33
New cards

[T] What does semantics concern?

Meaning.

34
New cards

[T] What does pragmatics concern?

Language use / meaning arising from context of use.

35
New cards

[T] What do discourse and dialogue concern?

Units of language larger than a single utterance.

36
New cards

[IT p.35] IMAGE: Classic NLP Pipeline

Know the staged classical pipeline: speech may undergo speech-to-text, then text is tokenized, followed by morphological analysis, syntactic analysis, semantic analysis, and finally the NLP application.

37
New cards

[T] What is morphology?

The study of how words are formed from minimal meaning-bearing units called morphemes.

38
New cards

[T] What is a morpheme?

A minimal meaning-bearing unit.

39
New cards

[T] Give examples of morphology involving plural formation.

cat-s, fox-es, fish.

40
New cards

[T] Give examples of morphology involving tense.

walk-s, walk-ed.

41
New cards

[T] Give examples of nominalization from the lecture.

kill-er, fuzz-iness.

42
New cards

[T] Give examples of compounding from the lecture.

book-case, over-load, wash-cloth.

43
New cards

[T] Why is morphological analysis nontrivial?

Natural language contains many irregular forms.

44
New cards

[F] What sentence illustrates morphological irregularity in the lecture?

“women and children begun running away as the wolves showed their teeth”

45
New cards

[T] What does a morphological analyzer output in the lecture's example for “am”?

“be” + 1 PERSON + PRESENT.

46
New cards

[T] What is lemmatization?

Reducing inflectional forms of a word to a common base form.

47
New cards

[T] Give two lemmatization examples from the lecture.

children → child; running → run.

48
New cards

[A] What is the lemma of “children”?

child.

49
New cards

[A] What is the lemma of “running”?

run.

50
New cards

[T] What is syntax?

The study of how sentences are formed by grouping and ordering words.

51
New cards

[T] What does a part-of-speech (POS) tagger do?

Assigns a part-of-speech category to each token.

52
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “Apple”?

PROPN.

53
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “is”?

AUX.

54
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “looking”?

VERB.

55
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “at”?

ADP.

56
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “buying”?

VERB.

57
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “U.K.”?

PROPN.

58
New cards

[A] In “Apple is looking at buying U.K. startup for $1 billion,” what POS does the lecture assign to “startup”?

NOUN.

59
New cards

[A] In the lecture POS example, what is the lemma sequence for “Apple is looking at buying U.K. startup for $1 billion”?

apple be look at buy u.k. startup for $ 1 billion.

60
New cards

[T] What is a constituent?

A group of words that functions together as a unit within a sentence.

61
New cards

[IT p.54] IMAGE: Constituents in “Ming and Sue prefer morning flights”

Recognize the nested constituent structure shown in the lecture and how a constituency parser represents it.

62
New cards

[T] What three tests for constituency are given in the lecture?

Substitution, movement/cleft, and coordination.

63
New cards

[A] How can substitution test whether a sequence is a constituent?

Replace the sequence with another expression that can occupy the same grammatical position; if the result remains grammatical, that supports constituency.

64
New cards

[A] What substitution example is used for “Ming and Sue”?

“They prefer morning flights.”

65
New cards

[A] What substitution example is used for “morning flights”?

“Ming and Sue prefer coffee.”

66
New cards

[A] What movement/cleft example supports “Ming and Sue” being a constituent?

“It was Ming and Sue that prefer morning flights.”

67
New cards

[A] What coordination example supports “morning flights” as a constituent?

“Ming and Sue prefer morning flights and evening drives.”

68
New cards

[T] What does a constituency parser represent?

The hierarchical grouping of words into nested constituents.

69
New cards

[T] What does a dependency parser represent?

Dependency relations between words, showing which words depend on which other words.

70
New cards

[IT p.55] IMAGE: Dependency parse

Be able to interpret the dependency links between words rather than a nested phrase-structure tree.

71
New cards

[A] What is the key representational difference between constituency parsing and dependency parsing?

Constituency parsing groups words into hierarchical phrases/constituents; dependency parsing directly links words through syntactic dependency relations.

72
New cards

[T] What is semantics?

The study of the meaning of words, intermediate constituents, and sentences.

73
New cards

[T] What is lexical semantics?

Meaning and semantic relationships at the word level.

74
New cards

[T] What lexical semantic relations are illustrated in the lecture?

Synonymy, antonymy, and part-of relations.

75
New cards

[T] Give the lecture's synonym example.

purchase / buy.

76
New cards

[T] Give the lecture's antonym example.

hot / cold.

77
New cards

[T] Give the lecture's part-of relation example.

wheel is part of car.

78
New cards

[T] What is compositional semantics?

Understanding how the meanings of components combine to determine the meaning of a larger expression.

79
New cards

[A] Why do “olive oil” and “baby oil” illustrate compositional semantics?

The relationship between the modifier and “oil” differs: olive oil is oil from olives, while baby oil is not oil from babies.

80
New cards

[A] What question about “good” illustrates compositional meaning?

“Is a good driver a good person?” — the adjective's meaning depends on what it modifies.

81
New cards

[T] What does sentence-level semantics attempt to represent?

The meaning of an entire sentence, potentially using a formal logical representation.

82
New cards

[IT p.60] IMAGE: Sentence-level semantic representation of “Mary has a new car”

Recognize that sentence meaning can be represented formally with variables, predicates, quantification, and relations.

83
New cards

[F] What semantic/NLP tasks are listed on the semantics slide?

Word representations, word sense disambiguation, ontologies/taxonomies, and relation extraction/classification.

84
New cards

[T] What are discourse and pragmatics concerned with?

Meaning that comes from the context of use.

85
New cards

[T] What is implicit meaning?

Meaning that is inferred even though it is not stated directly.

86
New cards

[A] What implicit meaning is inferred from “I didn’t eat anything since the morning”?

“I’m hungry.”

87
New cards

[T] What is non-literal meaning?

Meaning where the intended interpretation differs from the literal wording.

88
New cards

[A] What does “I could eat a horse!” mean in the lecture?

The speaker is extremely hungry, not that they literally intend to eat a horse.

89
New cards

[T] What is a pragmatic inference in the lecture's food example?

“Do you have some food here?” can function as an indirect request meaning roughly “please give me some.”

90
New cards

[T] What is broad discourse context?

Earlier or surrounding utterances that are needed to interpret the current utterance.

91
New cards

[A] In the dialogue “Would you like some food?” → “Yes, please,” what does “Yes, please” mean?

“I would like some food.”

92
New cards

[T] What is coreference?

The phenomenon where multiple expressions refer to the same entity.

93
New cards

[A] In “I have an apple. I don’t like them. I don’t like apples,” what contextual phenomenon is being illustrated?

Coreference/discourse interpretation.

94
New cards

[T] What is common background/context?

Shared knowledge or situational information needed to interpret an expression.

95
New cards

[A] In “There’s a new restaurant in the city,” what might “the city” mean from common background?

The city the speakers are currently in; interpretation can depend on shared context.

96
New cards

[T] What is the first major NLP challenge discussed?

Ambiguity.

97
New cards

[T] What is ambiguity?

A form or expression having multiple alternative interpretations.

98
New cards

[T] What is lexical ambiguity?

A word/form having multiple possible meanings or lexical categories.

99
New cards

[A] Why is “kiwi” lexically ambiguous?

It can refer to different things depending on context, such as the fruit versus another meaning.

100
New cards

[T] What NLP task resolves different possible senses of a word?

Word Sense Disambiguation.