Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Concraft :: *
- saveModel :: FilePath -> Concraft -> IO ()
- loadModel :: FilePath -> IO Concraft
- tag :: Concraft -> Sent Tag -> Sent Tag
- marginals :: Concraft -> Sent Tag -> Sent Tag
- macaPar :: MacaPool -> Text -> IO [Sent Tag]
- data TrainConf = TrainConf {}
- train :: TrainConf -> IO [SentO Tag] -> IO [SentO Tag] -> IO Concraft
- prune :: Double -> Concraft -> Concraft
Model
saveModel :: FilePath -> Concraft -> IO ()
Save model in a file. Data is compressed using the gzip format.
Tagging
Analysis
macaPar :: MacaPool -> Text -> IO [Sent Tag] Source
Analyse paragraph with Maca. The function is thread-safe. As a pre-processing step, all non-printable characters are removed from the input (based on empirical observations, Maca behaves likewise).
Training
Training configuration.
Train concraft model. TODO: It should be possible to supply the two training procedures with different SGD arguments.