Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data Disamb = Disamb {
- tiers :: [Tier]
- schemaConf :: SchemaConf
- crf :: CRF Ob Atom
- data Tier = Tier {}
- data Atom = Atom {}
- marginals :: Word w => Disamb -> Sent w Tag -> [WMap Tag]
- disamb :: Word w => Disamb -> Sent w Tag -> [Tag]
- include :: (Sent w Tag -> [Tag]) -> Sent w Tag -> Sent w Tag
- disambSent :: Word w => Disamb -> Sent w Tag -> Sent w Tag
- data TrainConf
- train :: Word w => TrainConf -> IO [Sent w Tag] -> IO [Sent w Tag] -> IO Disamb
- prune :: Double -> Disamb -> Disamb
Model
A disambiguation model.
Disamb | |
|
Tiers
A tier description.
An atomic part of morphosyntactic tag with optional POS.
Disambiguation
marginals :: Word w => Disamb -> Sent w Tag -> [WMap Tag] Source #
Tag labels with marginal probabilities.
include :: (Sent w Tag -> [Tag]) -> Sent w Tag -> Sent w Tag Source #
Insert disambiguation results into the sentence.
Training
Training configuration.
:: Word w | |
=> TrainConf | Training configuration |
-> IO [Sent w Tag] | Training data |
-> IO [Sent w Tag] | Evaluation data |
-> IO Disamb | Resultant model |
Train disamb model.