Safe Haskell | None |
---|
- data Concraft
- saveModel :: FilePath -> Concraft -> IO ()
- loadModel :: FilePath -> IO Concraft
- tag :: MacaPool -> Concraft -> Text -> IO [Sent Tag]
- tag' :: MacaPool -> Concraft -> Text -> IO [[Sent Tag]]
- tagSent :: Concraft -> Sent Tag -> Sent Tag
- data TrainConf = TrainConf {}
- train :: TrainConf -> IO [SentO Tag] -> IO [SentO Tag] -> IO Concraft
Model
saveModel :: FilePath -> Concraft -> IO ()
Save model in a file. Data is compressed using the gzip format.
Tagging
tag :: MacaPool -> Concraft -> Text -> IO [Sent Tag]Source
Perform morphological tagging on the input text.
tag' :: MacaPool -> Concraft -> Text -> IO [[Sent Tag]]Source
An alernative tagging function which interprets empty lines as paragraph ending markers. The function uses lazy IO so it can be used to analyse large chunks of data.