| Safe Haskell | None |
|---|
NLP.Concraft.Guess
- data Guesser t = Guesser {
- schemaConf :: SchemaConf
- crf :: CRF Ob t
- guess :: Ord t => Int -> Guesser t -> Sent t -> [[t]]
- guessSent :: Sent s w -> Int -> Guesser Tag -> s -> s
- guessDoc :: Functor f => Doc f s w -> Int -> Guesser Tag -> Text -> Text
- include :: Ord t => Sent t -> [[t]] -> Sent t
- data TrainConf = TrainConf {}
- train :: Foldable f => Doc f s w -> TrainConf -> FilePath -> Maybe FilePath -> IO (Guesser Tag)
Types
A guessing model.
Constructors
| Guesser | |
Fields
| |
Guessing
guess :: Ord t => Int -> Guesser t -> Sent t -> [[t]]Source
Determine the k most probable labels for each word in the sentence.
guessSent :: Sent s w -> Int -> Guesser Tag -> s -> sSource
Tag sentence in external format. Selected interpretations (tags correct within the context) will be preserved.
Arguments
| :: Functor f | |
| => Doc f s w | Document format handler |
| -> Int | Guesser argument |
| -> Guesser Tag | Guesser itself |
| -> Text | Input |
| -> Text | Output |
Tag file.
Training
Training configuration.
Constructors
| TrainConf | |
Fields
| |