Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Locations elem = Vector (Location elem)
- type Morph elem = Vector elem
- type Counts elem = Map (Morph elem) Int
- type Site = Int
- data Location elem = Location {
- _value :: !elem
- _morphFinal :: !Bool
- _static :: !Bool
- _goldFinal :: !Bool
- type Lookup elem = Map (Morph elem) (Set Int)
- showLookup :: (PrintfArg elem, IsChar elem) => Lookup elem -> String
- showCounts :: (PrintfArg elem, IsChar elem) => Counts elem -> String
- data SamplingState elem = SamplingState {
- _counts :: !(Counts elem)
- _locations :: !(Locations elem)
- _startLookup :: !(Lookup elem)
- _endLookup :: !(Lookup elem)
- _wordsLookup :: !(ReverseLookup elem)
- _toSample :: !(Set Int)
- data Params p = Params {}
- type Model elem p = Map [elem] p
- type Token = [Character]
- type Sentence = [Token]
- type Dataset = [Token]
- type Filename = String
- type Vocabulary = Set Token
- type Segmentation = Map Token [Token]
- type ReverseLookup elem = Map Int (Morph elem, Morph elem)
- type Character = (Char, Bool)
Documentation
Location | |
|
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
data SamplingState elem Source #
A coherent state of boundary assignments, counts, and word start/end lookups
SamplingState | |
|
Instances
(Ord elem, Read elem) => Read (SamplingState elem) Source # | |
Defined in Text.HaskSeg.Types readsPrec :: Int -> ReadS (SamplingState elem) # readList :: ReadS [SamplingState elem] # readPrec :: ReadPrec (SamplingState elem) # readListPrec :: ReadPrec [SamplingState elem] # | |
Show elem => Show (SamplingState elem) Source # | |
Defined in Text.HaskSeg.Types showsPrec :: Int -> SamplingState elem -> ShowS # show :: SamplingState elem -> String # showList :: [SamplingState elem] -> ShowS # | |
Show elem => PrintfArg (SamplingState elem) Source # | |
Defined in Text.HaskSeg.Types formatArg :: SamplingState elem -> FieldFormatter # parseFormat :: SamplingState elem -> ModifierParser # |
Parameters that are set at training time
type Vocabulary = Set Token Source #
Orphan instances
PrintfArg (Set Int) Source # | |
formatArg :: Set Int -> FieldFormatter # parseFormat :: Set Int -> ModifierParser # | |
Show elem => PrintfArg (Vector elem) Source # | |
formatArg :: Vector elem -> FieldFormatter # parseFormat :: Vector elem -> ModifierParser # |