delta-h-0.0.3: Online entropy-based model of lexical category acquisition.

Safe HaskellSafe-Infered

Entropy.Algorithm

Synopsis

Documentation

labelToken :: ClusterSet (Int, String) -> X (Int, String) -> YSource

labelToken: output a single label (from a closed set)

data ClusterSet x Source

Constructors

CS 

Fields

countY :: Map Y Count
 
hY :: !H
 
countXY :: Map Y (Map x Count)
 
hXY :: Map Y H
 
countN :: !Count
 
lastID :: !Y
 

Instances

Eq x => Eq (ClusterSet x) 
Ord x => Ord (ClusterSet x) 
Show x => Show (ClusterSet x) 
(Ord x, Binary x) => Binary (ClusterSet x) 

type X k = Map k CountSource

type Y = IntSource

featIDs :: (Ord a, Ord b) => ClusterSet (a, b) -> [a]Source

examples :: [Int] -> [[Token]] -> [[X (Int, String)]]Source