Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Convert GapType to UD dependency relation
Equations
- DepGrammar.LongDistance.gapToDepRel DepGrammar.LongDistance.GapType.subjGap = UD.DepRel.nsubj
- DepGrammar.LongDistance.gapToDepRel DepGrammar.LongDistance.GapType.objGap = UD.DepRel.obj
- DepGrammar.LongDistance.gapToDepRel DepGrammar.LongDistance.GapType.iobjGap = UD.DepRel.iobj
- DepGrammar.LongDistance.gapToDepRel DepGrammar.LongDistance.GapType.oblGap = UD.DepRel.obl
Instances For
SLASH feature: tracks what's missing V/NP means "verb phrase missing a noun phrase"
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Island constraint types
- complex_NP : IslandType
- coordinate : IslandType
- adjunct : IslandType
- subject : IslandType
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Check if a position is inside an island (simplified). Works on a DepTree directly.
Equations
- DepGrammar.LongDistance.isInsideIsland t gapIdx = t.deps.any fun (d : DepGrammar.Dependency) => (d.depType == UD.DepRel.nmod || d.depType == UD.DepRel.conj) && d.depIdx == gapIdx
Instances For
Validate that no extraction site is inside an island. Takes explicit filler-gap pairs as (fillerIdx, gapHostIdx, gapType).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Fill a gap by adding an argument edge to the enhanced graph. The fillerIdx word becomes a dependent of gapHostIdx with the relation corresponding to gapType.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Get SLASH feature at a node by comparing basic tree vs enhanced graph. If the enhanced graph has an argument edge to a word that the basic tree doesn't, that word has a SLASH feature.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A long-distance dependency tree is well-formed if:
- Structural constraints (unique heads, acyclicity, projectivity, agreement)
- No island violations
- Fillers are wh-words, fronted, or relative clause heads
Note:
checkVerbSubcatis omitted because LD trees inherently have argument gaps (the whole point of long-distance dependencies).
Equations
- One or more equations did not get rendered due to their size.
Instances For
"What did John see?" - Object wh-question (basic tree). Words: what(0) did(1) John(2) see(3) In UD, the wh-word attaches as obj of the main verb.
Equations
- One or more equations did not get rendered due to their size.
Instances For
"Who saw Mary?" - Subject wh-question (no gap needed).
Equations
- One or more equations did not get rendered due to their size.
Instances For
"Who did John see?" - Object wh-question with "who".
Equations
- One or more equations did not get rendered due to their size.
Instances For
"the book that John read" - Object relative clause (basic tree).
Words: the(0) book(1) that(2) John(3) read(4)
In UD, the relative clause attaches via acl from head noun to RC verb.
The gap (book as obj of read) is implicit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Enhanced graph for "the book that John read" — gap filled. Book (1) is added as obj of read (4).
Equations
Instances For
"the book that John gave Mary" - Object relative with ditransitive.
Equations
- One or more equations did not get rendered due to their size.
Instances For
"John thinks that Mary sleeps" - That-complement (no gap).
Equations
- One or more equations did not get rendered due to their size.
Instances For
"John thinks Mary sleeps" - Bare complement (that-omission, no gap).
Equations
- One or more equations did not get rendered due to their size.
Instances For
"John wonders if Mary sleeps" - If-complement (no gap).
Equations
- One or more equations did not get rendered due to their size.
Instances For
"John wonders what Mary saw" - Embedded wh-question. Words: john(0) wonder(1) what(2) mary(3) sees(4)
Equations
- One or more equations did not get rendered due to their size.
Instances For
Object wh-questions have wh-word at index 0.
Subject wh-questions don't need gaps (empty gap list).
Enhanced graph for relative clause has the filled gap edge.
The basic tree of "the book that John read" does NOT have this obj edge.
Enhanced graph has more edges than the basic tree.
Enhanced graph violates unique-heads (book has edges from both det and obj).
The basic tree IS a tree (unique heads).
SLASH derivation: book (1) gets an obj SLASH from comparing basic vs enhanced.
Complement clauses have no filler-gap dependencies.