NLU Syntax Flashcards

(25 cards)

1
Q

What is Natural Language Understanding (NLU)?

A

NLU is a field of AI that focuses on machine understanding of human language using syntax, semantics, and pragmatics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the motivation behind NLU?

A

To bridge the gap between human and machine communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a language?

A

A collection of sentences of finite length all constructed from a finite alphabet of symbols.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a grammar?

A

A device that enumerates the sentences of a language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is speech recognition in NLU?

A

The process of identifying spoken words and converting them into text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is syntactic analysis?

A

Analyzing the grammatical structure of a sentence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is semantic analysis?

A

Understanding the meaning of a sentence using knowledge about objects and actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is pragmatic analysis?

A

Understanding language in context, such as interpreting ‘You have a green light’ based on situation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a formal grammar?

A

A tuple G = (N, Σ, P, S) where N is non-terminals, Σ is terminals, P is production rules, and S is the start symbol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the levels of the Chomsky Hierarchy?

A

Type-0: Unrestricted, Type-1: Context Sensitive, Type-2: Context Free, Type-3: Regular.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which automaton accepts Type-0 grammars?

A

Turing machines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which automaton accepts Type-1 grammars?

A

Linear-bounded automata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which automaton accepts Type-2 grammars?

A

Push-down automata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which automaton accepts Type-3 grammars?

A

Finite state automata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Context-Free Grammar (CFG)?

A

A grammar where rules are of the form A → α, where A is a non-terminal and α is a string of terminals and/or non-terminals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a Definite Clause Grammar (DCG)?

A

A Prolog-based notation for CFGs using –> to define grammar rules.

17
Q

How are terminal symbols denoted in DCG?

A

Terminal symbols appear inside square brackets, e.g. [man].

18
Q

How is the rule ‘noun → man’ represented in DCG?

A

noun –> [man].

19
Q

What does a lexical analyzer do?

A

Transforms input phrases into a list of tokens.

20
Q

What are two main functions of a parser?

A

Syntax checking and syntax tree generation.

21
Q

What is a parse tree?

A

A tree representation of the syntactic structure of a sentence.

22
Q

What is the Prolog representation of ‘sentence –> noun_phrase, verb_phrase.’?

A

sentence(ListOfTerminals, Result) :- noun_phrase(ListOfTerminals, TmpList), verb_phrase(TmpList, Result).

23
Q

What are applications of NLU and grammars?

A

Grammar checkers, translation systems, TTS, STT, summarization, free-text interfaces, compiler design.

24
Q

What is a limitation of LLMs like GPT in NLU?

A

They predict text sequences statistically but do not truly understand language.

25
What is the potential future of NLU?
Combining LLMs with classic NLU techniques.