Grammars Flashcards

1
Q

Use of CFGs in NLP

A
  • CFGs tend to be effective for hierarchical strucutres of language
  • Probabilistic extensions(PCFGs) capture the likeliness of structures
  • CFGs usually define the basis of syntactic parsing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Syntactic parsing

A
  • The text analysis that determines the syntactic structure of a sentence
  • Used in NLP as preprocessing for many tasks, e.g., relation extraction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Constituencies vs Dependencies parsing

A

Constituency parsing: Infers the structure of the phrases in a sentence
Dependency parsing: infers the structure of the words’ dependencies

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

Transformation into normal form

A
  • Cleaning: Empties and unaries are removed recursively
  • Binarization: n-ary rules are divided by using new non-terminals, n>2
  • Any CFG can be tranformed into CNF without changing the language
  • This may result in different parse trees for words the language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Constituency parsing

A
  • The text analysis that determines the phrase structure of a sentence with respect to a given grammar
  • Often used in NLP as preprocessing where syntax is important
  • Parsing works robust across domains of well-formatted texts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Downstream tasks(tareas posteriores) based on parsing

A

Named entity recognition in complex domains
Relationship extraction: both for semantic and temporal relations
Coreference resolution: to identify candidate matching references
Opinion mining regarding aspects of products or similar
Machine translation, to analyze the source sentence
Quiestion answering, particularly in high-precision scenarios

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

Attachment ambiguity
Key parsing problem

A

Correct attachment of the various constituents in a sentence, such as prepositional phrases, adverbial phrases, infinitives, ….

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

How to find the correct attachment?

A

Potential attachments grow exponentially with number n of constituents

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

Limitations of standard PCFGs

A

-PCFGs assume that the plausibility of structures is independent of the words used, i.e., each rule has a fixed probability
-However, specific words may make certain rules particularly (un)likely

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

Dependency Grammar

A
  • A grammar that odels the syntactic structure of a sentence by linking its tokens with binary asymmetric relations
  • Relations, called dependencies, define grammatical connections
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Graph representation of dependency grammar

A

-Each node is a token
- An edge connects a head with a dependent node
- The nodes and edges form a fully connected, acyclic tree with a single head(if available, the main verb of the first main clause is the head)

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

Identification of Dependencies:
Selected features of dependencies

A
  • Breaks: Dependencies rarely span intervening verbs or punctuation
  • Valency: heads have usual numbers of dependents on each side
  • Affinities: Some dependencies are more plausible than others(For example: “Issues -> the” rather than “the -> issues”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Parsing Methods

A

Dynamic programming
Graph algorithmus
Transition-based parsing

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