haskseg-0.1.0.3: Simple unsupervised segmentation model

Safe HaskellNone
LanguageHaskell2010

Text.HaskSeg.Types

Contents

Synopsis

Documentation

type Locations elem = Vector (Location elem) Source #

type Morph elem = Vector elem Source #

type Counts elem = Map (Morph elem) Int Source #

type Site = Int Source #

data Location elem Source #

Constructors

Location 

Fields

Instances
Read elem => Read (Location elem) Source # 
Instance details

Defined in Text.HaskSeg.Types

Show elem => Show (Location elem) Source # 
Instance details

Defined in Text.HaskSeg.Types

Methods

showsPrec :: Int -> Location elem -> ShowS #

show :: Location elem -> String #

showList :: [Location elem] -> ShowS #

type Lookup elem = Map (Morph elem) (Set Int) Source #

A "start" lookup points to the boundary *before* the first item, an "end" lookup points to the boundary *of* the last item

showLookup :: (PrintfArg elem, IsChar elem) => Lookup elem -> String Source #

showCounts :: (PrintfArg elem, IsChar elem) => Counts elem -> String Source #

data SamplingState elem Source #

A coherent state of boundary assignments, counts, and word start/end lookups

Constructors

SamplingState 

Fields

Instances
(Ord elem, Read elem) => Read (SamplingState elem) Source # 
Instance details

Defined in Text.HaskSeg.Types

Show elem => Show (SamplingState elem) Source # 
Instance details

Defined in Text.HaskSeg.Types

Methods

showsPrec :: Int -> SamplingState elem -> ShowS #

show :: SamplingState elem -> String #

showList :: [SamplingState elem] -> ShowS #

Show elem => PrintfArg (SamplingState elem) Source # 
Instance details

Defined in Text.HaskSeg.Types

data Params p Source #

Parameters that are set at training time

Constructors

Params 

Fields

Instances
Read p => Read (Params p) Source # 
Instance details

Defined in Text.HaskSeg.Types

Show p => Show (Params p) Source # 
Instance details

Defined in Text.HaskSeg.Types

Methods

showsPrec :: Int -> Params p -> ShowS #

show :: Params p -> String #

showList :: [Params p] -> ShowS #

Show p => PrintfArg (Params p) Source # 
Instance details

Defined in Text.HaskSeg.Types

type Model elem p = Map [elem] p Source #

type ReverseLookup elem = Map Int (Morph elem, Morph elem) Source #

Orphan instances

PrintfArg (Set Int) Source # 
Instance details

Show elem => PrintfArg (Vector elem) Source # 
Instance details