Stability | experimental |
---|---|
Maintainer | Daniël de Kok <me@danieldk.eu> |
Safe Haskell | Safe-Infered |
Data.Alpino.DepStruct.Triples
Contents
Description
Definition and extraction of Alpino dependency triples.
- data DepTriple = DepTriple {}
- data DepTripleComponent = DepTripleComponent {}
- depTriples :: TreePos Full DSLabel -> Set DepTriple
- tzFold :: (a -> TreePos Full b -> a) -> a -> TreePos Full b -> a
Dependency triples
The DepTriple
type represents a dependency that occurs in
a dependency structure. The triple consists of the head, a dependent, and
the relation between the head and the dependeny. For convenience, the
triple is composed of two DepTripleComponent
instances: the first
representing the head and its role in the relation, the second
representing the dependant and its role in the relation.
Constructors
DepTriple | |
Fields |
data DepTripleComponent Source
The DepTripleComponent
type represents a head or a dependant in a
dependency relation.
Constructors
DepTripleComponent | |
depTriples :: TreePos Full DSLabel -> Set DepTripleSource
Extract DepTriples
from the tree starting at the node represented by
the TreePos
zipper.