Topic 4: Grammar & Parsing Flashcards

1
Q

What is syntax?

A

Refers to the way words are arranged together

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

Constituency

A

group of words behaving as a single unit or constituent
fundamentals of developing grammar

example
noun phrase, a sequence of words surrounding at least one noun

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

Evidence for constituency

A

words can all appear in a similar syntactic environments.
give example

noun phrase can occur before verbs

preposed or postposed constructions
example of prepositional phrase “ on September seventeenth” can be placed in ….

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

Context Free Grammar

A

formal system for modeling constituent structure in English and other natural languages

also known as phrase-structure grammars

consists of a set of rules or productions

the rule expresses ways symbol of the language grouped and ordered together and lexicon of words and symbols

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

Some rules for noun phrase

A

NP -> Det Nominal
NP -> ProperNoun
Nominal -> Noun | Nominal Noun

example derivation
NP -> Det Nom -> the Nom Noun -> the Noun Noun -> the morning noun -> the morning flight

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

2 Classes of symbols

A

terminal - corresponds to words in the language
non-terminal - express abstractions over the terminals

item on left of the arrow is a single non-terminal symbol.
right side is an ordered list of one or more terminals or non-terminals

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

Function of CFG

A
  • ways for generating structures

- ways to assign structure to a given sentence.

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

Derivation

A

the sequence of rule expansions is called derivation of the string of words.

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

Parse Tree

A

derivation can be represented with parse tree

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

More rules on Eng CFG

A

Give examples

S -> NP VP
VP -> VERB NP
VP -> VERB PP
PP -> PREPOSITION NP

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

Sample Lexicon and Sample Grammar

A

examples …

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

Bracketed Notation

A

used to represent parse tree in a more compact format

give example

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

Grammatical Sentence

A

sentences that can be derived by a grammar defined by the grammar in the formal language.

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

Ungrammatical sentences

A

sentences that cannot be derived by a given formal grammar

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

Four parameters in CFG

A

non-terminal symbols
terminal symbols
rules
start symbol

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

Sentence-Level construction

A

Declarative - S -> NP VP

Imperative - S -> VP (VP and no subject)

Yes-no question - S -> AV NP VP

Wh-subject question - same with declarative except that noun phrase contains some wh-word S -> wh NP VP

wh-non-subject question - auxiliary appears before subject NP just as in the yes-no question S -> Wh-NP Aux NP VP

17
Q

Noun Phrase

A

Role of determiner can be filled by a possesive expression
Det -> NP ‘s

before head noun
relative pronoun
prepositional phrase

18
Q

Verb Phrase

A
consist of the verb and number of other constituents
VP -> Verb
VP -> Verb NP
VP -> Verb NP PP
VP -> Verb PP
VP -> Verb S
19
Q

Example possible constituents in VP

A

not every verb compatible with every VP

20
Q

More VP Rules

A

VP -> verb with no complement
VP -> verb with NP complement NP
VP -> verb with S complement S

21
Q

Coordination

A

Major phrases types discussed here can be cojoined with conjunctions to form larger construction of the same type.

example
NP -> NP and NP
VP -> VP and VP
S -> S and S

22
Q

Tree bank

A

syntactically annotated corpus

important role in parsing

used by parsers to automatically parse each sentence followed by human corrected the parses.

sufficiently robust grammars consists of CFG rules can be used to assign parse tree to any sentence.

23
Q

Constituency Parsing

A

syntactic parsing is a task of recognizing a sentence and assigning a syntactic structure to it

goal is to produce the correct tree

24
Q

Importance of parse tree

A

used in grammatical checking.

used as intermedia representation for semantic analysis

25
Q

Ambiguity

A

structural ambiguity occurs when grammar can assign more than one parse to a sentence

26
Q

2 types of ambiguity

A

attachment ambiguity
- constituent can be attached to a parse tree at more than one place

coordination ambiguity
- different set of phrases conjoined by conjunction
example
[old [ men and women ] ]
[old men] and [women]
27
Q

Syntactic disambiguation

A

to choose a single correct parse from multitude possible parses

algo requires statistical, semantic and contextual knowledge sources

28
Q

Statistical parsing

A

compute probability of each interpretation and choose most probable

29
Q

Probabilistic CFG

A

assigned rule based on probability
also known as stochastic context free grammar
used for disambiguation

PCFG differs from standard CFG by augmenting each rule in R with a conditional probability
A -> b [p]
P ( A -> b | A )
sum of all possible expansions of non-terminal probabilities must be one

30
Q

exercise PCFG

A

give probabilities of rules
give multiple parse tree
compute the probabilities of rules from the parse trees and select the PCFG with highest probability

31
Q

Dependency Parsing

A

Phrasal constituents and phrase-structure rules do not play a direct role

32
Q

Dependency Style Analysis

A

relations among words are illustrated with directed, labelled arcs from head to dependents.

known as typed dependency structure because labels are drowned from a fixed inventory of grammatical relations

33
Q

Advantages of dependency grammars

A

ability to deal with languages that are morphologically rich and have relatively free word order

the approach abstracts away from word-order information

34
Q

Core relations

A

clausal relations - syntactic roles with respect to a predicate

modifier relations - categorize ways the word can modify heads

give examples. . .