concraft-0.4.0: Morphosyntactic tagging tool based on constrained CRFs

Safe HaskellNone

NLP.Concraft

Contents

Synopsis

Types

data Concraft Source

Concraft data.

Constructors

Concraft 

Instances

Tagging

tag :: Concraft -> Sent Tag -> [Tag]Source

Perform disambiguation preceded by context-sensitive guessing.

tagSent :: Sent s w -> Concraft -> s -> sSource

Tag the sentence.

tagDoc :: Functor f => Doc f s w -> Concraft -> Text -> TextSource

Tag document.

Training

trainSource

Arguments

:: (Functor f, Foldable f) 
=> Doc f s w

Document format handler

-> Int

Numer of guessed tags for each word

-> TrainConf

Guessing model training configuration

-> TrainConf

Disambiguation model training configuration

-> FilePath

Training file

-> Maybe FilePath

Maybe eval file

-> IO Concraft

Resultant models

Train guessing and disambiguation models.