W4 L1 syntactic analysis Flashcards

1
Q

how do PoS act as equivalence classes for words

A

we can think of PoS as equivalence classes for words

nouns can be swapped/interchanged without having the meaning/grammar/form of the sentence get changed/ruined

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

heres an example of a group of words that represent an equivanlecne class

A

he =
einstien =
albert einstein =
the scientist =
the famous scientist =
the famous scientist albert einstien

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

what are noun phrases

A

groups of words that contain a noun and the surronding words that support the noun further

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

what is a constituent

A

each noun phrase forms a constituent

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

what are the head and dependents in a constituent

A

head is the noun

the surrounding support words are the dependents

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

what is syntactic constituency

A

syntactic constituency is the idea that group of words can behave as a single unit/ constituents

three parties from brooklyn arrive….
the girls from mama mia love….

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

what is syntactic constituency used for

A

syntactic constituency is used to develop grammar/ grammar structures

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

what does it mean that constituents behave similary

A

they can be swapped around to create grammatically correct sentences

but the meaning of the sentence will change

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

what is a subject of the sentence

A

the main pariticipant of the action

ex albert, he, the bus

person place thing

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

what is the object

A

the participant to whom/which the action is applied

ie the nobel prize team chose albert (albert is the object)

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

what is an indirect object

A

the participant of the action that is affected by it indirectly

the team gave the prize to albert
(the prize is the indirect object)

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

can we look for constituants recursively

A

yes if we start with the full sentence and then start breaking down the sentences into consitiuents and then break those down further then we can make a tree of consitutents

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

how are delcaritive sentences such as i read books normally formed

A

they are formed using noun and verb phrases

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

what are context free grammars

A

mathmateical systems for modeling constituent (noun phrase) structure in language

if we can apply rules like

a setence -> noun phrase and verb phrase

then we can use math systems to figure out grammar without context

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

what are rules/productions in context free grammars (CFGs)

A

cfgs consist of a set of rules/productions

these rules expres the ways that symbols of the language(ie pos) can be grouped together

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

what are lexicons in context free grammars

A

CFGs have lexicons of words + symbols

there are two types of symbols

terminals: words that start or end a sentence ie the, Einstein

non-terminals, correspond to the others, ie NPs, Det, Etc

17
Q

what are tree banks

A

used to study common structures for context free grammar

we can parse through the trees

18
Q

what are some issues with context free grammar

A

universitality

language equality

ambiguity

19
Q

what is cgf universiality problem

A

Does the grammar generate every possible string that can be made using its alphabet (the set of terminal symbols)?

20
Q

what is cgf language equality problem

A

do two differnt cfgs generate the same output

problem unsolved rn

21
Q

what is the cfg limit of parsing

A

ambiguity - multiple valid parses can exist

22
Q

parsing vs chunking

A

parsing is concerned with taking an input and producing full linguistic structure for it
-> partial/shallow parses may be alright for suffcient for certain tasks

chunking is the process of idnetifying and classifying non overlapping sentences segments that make up the basic non-recusrive phrase that matches with the major PoS ie noun phrases verb phrases, PPs

23
Q

what are the two different ways to parse sentence trees

A

bottom up, top down

24
Q

what is bottom up parsing, when is it succesfully complete

A

start from the bottom and assign pos tags to the words

continue cobining non terminal words into further consitutents

the parse is successful when S (the full sentece) is reached and all consitutants are absorbed

25
Q

what are the pros and cons with bottom up parsing

A

advantage: only need to consider consituents that are compaitble with the input

con: need to track all possible rules and sub trees even if they dont result in S

26
Q

what is top down parsing, when is it succcesfulyl complete

A

start from top of the tree and go down,

its sucessful when all the terminal smbols/words are reached and all of them are covered by the parse

27
Q

what are the pros and cons of top down parsing

A

advanatage: only considers rules that are compatible with a well-formed sentence rooted in S

cons: may consider many rules along the way that are not compatiable with the input

28
Q

practice the top down early parsing algorithm

29
Q

what is the stoping creiteria for the top down earley parsing algorithm

A

S is fully processed

or there is no imput left

30
Q

what is dependency parsingq

A

dependency parsing is parising that focusing diretly with the input and establishing of directed binary grammartical relations that hold amoung the words of the input

31
Q

what are the things you need to keep track of in earley parsing

A

step id, rule, start-end, history, word 1d