haskseg-0.1.0.3: Simple unsupervised segmentation model

Safe HaskellNone
LanguageHaskell2010

Text.HaskSeg.Counts

Synopsis

Documentation

cleanCounts :: Counts elem -> Counts elem Source #

Remove zero-elements from a count object

initializeCounts :: (Ord elem, Show elem) => Locations elem -> Counts elem Source #

Initialize word counts from scratch, given boundary assignments

updateCounts :: Ord elem => (Int -> Int -> Int) -> Morph elem -> Int -> Counts elem -> Counts elem Source #

Use provided function to update counts for a word

addCounts :: Ord elem => Morph elem -> Int -> Counts elem -> Counts elem Source #

Convenience function for adding counts

subtractCounts :: Ord elem => Morph elem -> Int -> Counts elem -> Counts elem Source #

Convenience function for subtracting counts