concraft-pl-0.7.4: Morphological tagger for Polish

Safe HaskellNone
LanguageHaskell98

NLP.Concraft.Polish.Request

Contents

Synopsis

Request

data Request t Source

A request with configuration.

Constructors

Request 

Fields

rqBody :: t

The actuall request.

rqConf :: Config

Request configuration.

Instances

Binary t => Binary (Request t) 

newtype Config Source

Tagging configuration.

Constructors

Config 

Fields

tagProbs :: Bool

Tag with marginal probabilities.

Instances

Short

data Short Source

A short request.

Constructors

Short Text 
Par [Sent Tag] 

Instances

short :: MacaPool -> Concraft -> Request Short -> IO [Sent Tag] Source

Process the short request.

Long

data Long Source

A request to parse a long text.

Constructors

Long Text 
Doc [[Sent Tag]] 

Instances

long :: (Request Short -> IO a) -> Request Long -> IO [a] Source

Process the long request given the processor for the short request.