haskseg-0.1.0.1: Simple unsupervised segmentation model

Safe HaskellNone
LanguageHaskell2010

Text.HaskSeg.Lookup

Synopsis

Documentation

cleanLookup :: Lookup elem -> Lookup elem Source #

Remove morphs with no associated locations

initializeLookups :: (Ord a, Show a) => Locations a -> (Lookup a, Lookup a) Source #

Initialize word lookup from scratch, given sampling state

computeUpdates :: (Ord elem, Show elem) => Set Int -> Set Int -> Morph elem -> Morph elem -> (Lookup elem, Lookup elem) Source #

Compute the start and end lookup updates implied by setting the given sites to positive and negative, based on the two context-words