| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
NLP.Concraft.Disamb
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.
Constructors
| Disamb | |
Fields
| |
Tiers
A tier description.
Constructors
| Tier | |
An atomic part of morphosyntactic tag with optional POS.
Constructors
| Atom | |
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.
Arguments
| :: Word w | |
| => TrainConf | Training configuration |
| -> IO [Sent w Tag] | Training data |
| -> IO [Sent w Tag] | Evaluation data |
| -> IO Disamb | Resultant model |
Train disamb model.