Safe Haskell | None |
---|
- data Guesser t = Guesser {
- schemaConf :: SchemaConf
- crf :: CRF Ob t
- guess :: (Word w, Ord t) => Int -> Guesser t -> Sent w t -> [[t]]
- include :: (Word w, Ord t) => (Sent w t -> [[t]]) -> Sent w t -> Sent w t
- guessSent :: (Word w, Ord t) => Int -> Guesser t -> Sent w t -> Sent w t
- data TrainConf = TrainConf {
- schemaConfT :: SchemaConf
- sgdArgsT :: SgdArgs
- onDiskT :: Bool
- r0T :: R0T
- data R0T
- = AnyInterps
- | AnyChosen
- | OovChosen
- train :: (Word w, Ord t) => TrainConf -> IO [Sent w t] -> IO [Sent w t] -> IO (Guesser t)
Types
A guessing model.
Guesser | |
|
(Ord t, Binary t) => Binary (Guesser t) |
Guessing
guess :: (Word w, Ord t) => Int -> Guesser t -> Sent w t -> [[t]]Source
Determine k
most probable labels for each word in the sentence.
include :: (Word w, Ord t) => (Sent w t -> [[t]]) -> Sent w t -> Sent w tSource
Insert guessing results into the sentence.
Training
Training configuration.
TrainConf | |
|
Method of constructing the default set of labels (R0).
AnyInterps | See |
AnyChosen | See |
OovChosen | See |