Safe Haskell | None |
---|
Types and functions related to the morphosyntax data layer.
- data Seg w t = Seg {}
- mapSeg :: Ord b => (a -> b) -> Seg w a -> Seg w b
- interpsSet :: Seg w t -> Set t
- interps :: Seg w t -> [t]
- class Word a where
- type Sent w t = [Seg w t]
- mapSent :: Ord b => (a -> b) -> Sent w a -> Sent w b
- data SentO w t = SentO {}
- mapSentO :: Ord b => (a -> b) -> SentO w a -> SentO w b
- data WMap a
- mapWMap :: Ord b => (a -> b) -> WMap a -> WMap b
- mkWMap :: Ord a => [(a, Double)] -> WMap a
Segment
A segment parametrized over a word type and a tag type.
interpsSet :: Seg w t -> Set tSource
Interpretations of the segment.
Word class
Sentence
A sentence with original, textual representation.
(Show w, Show t) => Show (SentO w t) |
Weighted collection
A set with a non-negative weight assigned to each of its elements.