Safe Haskell | None |
---|
- 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.
Training
Training configuration.
Train concraft model. TODO: It should be possible to supply the two training procedures with different SGD arguments.