Safe Haskell | Safe-Infered |
---|
Entropy.Algorithm
- cluster :: Bool -> ClusterSet (Int, String) -> [X (Int, String)] -> ClusterSet (Int, String)
- clusterBeam :: Int -> Bool -> ClusterSet (Int, String) -> [X (Int, String)] -> ClusterSet (Int, String)
- clusterToken :: Bool -> ClusterSet (Int, String) -> X (Int, String) -> [(Y, ClusterSet (Int, String))]
- labelToken :: ClusterSet (Int, String) -> X (Int, String) -> Y
- clusterWords :: [Int] -> ClusterSet (Int, String) -> [String] -> [String]
- data ClusterSet x = CS {}
- weightedhXY :: ClusterSet x -> Double
- empty :: ClusterSet x
- makeClusterSet :: Map Y (Map x Count) -> ClusterSet x
- type X k = Map k Count
- type Y = Int
- type Count = Double
- featIDs :: (Ord a, Ord b) => ClusterSet (a, b) -> [a]
- predictX0 :: ClusterSet (Int, String) -> X (Int, String) -> [String]
- predictX0Full :: ClusterSet (Int, String) -> X (Int, String) -> [String]
- clusterLabelToX0 :: ClusterSet (Int, String) -> Y -> [String]
- defocus :: X (Int, String) -> X (Int, String)
- getX0 :: X (Int, String) -> String
- examples :: [Int] -> [[Token]] -> [[X (Int, String)]]
- display :: (Y, Map (Int, String) Double) -> String
- getLabeler :: Bool -> Maybe FilePath -> FilePath -> IO ([String] -> [String])
Documentation
clusterBeam :: Int -> Bool -> ClusterSet (Int, String) -> [X (Int, String)] -> ClusterSet (Int, String)Source
clusterToken :: Bool -> ClusterSet (Int, String) -> X (Int, String) -> [(Y, ClusterSet (Int, String))]Source
labelToken :: ClusterSet (Int, String) -> X (Int, String) -> YSource
labelToken: output a single label (from a closed set)
clusterWords :: [Int] -> ClusterSet (Int, String) -> [String] -> [String]Source
data ClusterSet x Source
Constructors
CS | |
Instances
Eq x => Eq (ClusterSet x) | |
Ord x => Ord (ClusterSet x) | |
Show x => Show (ClusterSet x) | |
(Ord x, Binary x) => Binary (ClusterSet x) |
weightedhXY :: ClusterSet x -> DoubleSource
empty :: ClusterSet xSource
makeClusterSet :: Map Y (Map x Count) -> ClusterSet xSource
featIDs :: (Ord a, Ord b) => ClusterSet (a, b) -> [a]Source
predictX0Full :: ClusterSet (Int, String) -> X (Int, String) -> [String]Source
clusterLabelToX0 :: ClusterSet (Int, String) -> Y -> [String]Source