Safe Haskell | Safe-Infered |
---|
- type Flist a = [AvPair a]
- data AvPair a = AvPair {}
- type FeatStruct a = Map Text a
- emptyFeatStruct :: FeatStruct a
- mkFeatStruct :: Flist GeniVal -> FeatStruct GeniVal
- fromFeatStruct :: FeatStruct a -> Flist a
- sortFlist :: Flist a -> Flist a
- unifyFeat :: Monad m => Flist GeniVal -> Flist GeniVal -> m (Flist GeniVal, Subst)
- alignFeat :: Flist GeniVal -> Flist GeniVal -> [(Text, GeniVal, GeniVal)]
- alignFeatH :: Flist GeniVal -> Flist GeniVal -> [(Text, GeniVal, GeniVal)] -> [(Text, GeniVal, GeniVal)]
- crushAvPair :: AvPair [GeniVal] -> Maybe (AvPair GeniVal)
- crushFlist :: Flist [GeniVal] -> Maybe (Flist GeniVal)
Documentation
Typeable1 AvPair | |
Pretty SemInput | |
GeniShow SemInput | |
Eq a => Eq (AvPair a) | |
Data a => Data (AvPair a) | |
Ord a => Ord (AvPair a) | |
Binary a => Binary (AvPair a) | |
NFData a => NFData (AvPair a) | |
Pretty (AvPair GeniVal) | |
Pretty (Flist GeniVal) | |
GeniShow (AvPair GeniVal) | |
GeniShow (Flist GeniVal) | |
DescendGeniVal v => DescendGeniVal (AvPair v) | |
Collectable a => Collectable (AvPair a) | |
DescendGeniVal v => DescendGeniVal ([String], Flist v) |
type FeatStruct a = Map Text aSource
fromFeatStruct :: FeatStruct a -> Flist aSource
alignFeat :: Flist GeniVal -> Flist GeniVal -> [(Text, GeniVal, GeniVal)]Source
alignFeat
is a pre-procesing step used to ensure that feature structures
have the same set of keys. If a key is missing in one, we copy it to the
other with an anonymous value.
The two feature structures must be sorted for this to work