Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- 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) => [[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
- train :: (Word w, Ord t) => TrainConf -> IO [Sent w t] -> IO [Sent w t] -> IO (Guesser t)
Types
A guessing model.
Guesser | |
|
Guessing
guess :: (Word w, Ord t) => Int -> Guesser t -> Sent w t -> [[t]] Source #
Determine the k
most probable labels for each word in the sentence.
TODO: Perhaps it would be better to use sets instead of lists
as output?
include :: (Word w, Ord t) => [[t]] -> Sent w t -> Sent w t Source #
Insert guessing results into the sentence. Only interpretations of OOV words will be extended.
Training
Training configuration.
TrainConf | |
|
Method of constructing the default set of labels (R0).
Instances
Enum R0T Source # | |
Eq R0T Source # | |
Data R0T Source # | |
Defined in NLP.Concraft.Guess gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> R0T -> c R0T # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c R0T # dataTypeOf :: R0T -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c R0T) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c R0T) # gmapT :: (forall b. Data b => b -> b) -> R0T -> R0T # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> R0T -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> R0T -> r # gmapQ :: (forall d. Data d => d -> u) -> R0T -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> R0T -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> R0T -> m R0T # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> R0T -> m R0T # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> R0T -> m R0T # | |
Ord R0T Source # | |
Show R0T Source # | |