concraft-pl-2.1.1: Morphological tagger for Polish

Safe HaskellNone
LanguageHaskell2010

NLP.Concraft.Polish.DAG.Format.Base

Contents

Synopsis

Printing

data ShowCfg Source #

Printing configuration.

Constructors

ShowCfg 

Fields

  • probType :: ProbType

    Which type of probabilities to show (unless suppressed)

  • numericDisamb :: Bool

    Print disamb markers as numerical values instead of probability values

data ProbType Source #

Type of probabilities.

Constructors

Marginals

Marginals of the disambiguation model

MaxProbs

Max probabilities of the disambiguation model

GuessedMarginals

Marginals of the guessing model

Instances
Enum ProbType Source # 
Instance details

Defined in NLP.Concraft.Polish.DAG.Format.Base

Eq ProbType Source # 
Instance details

Defined in NLP.Concraft.Polish.DAG.Format.Base

Data ProbType Source # 
Instance details

Defined in NLP.Concraft.Polish.DAG.Format.Base

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProbType -> c ProbType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProbType #

toConstr :: ProbType -> Constr #

dataTypeOf :: ProbType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProbType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProbType) #

gmapT :: (forall b. Data b => b -> b) -> ProbType -> ProbType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProbType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProbType -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProbType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProbType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProbType -> m ProbType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProbType -> m ProbType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProbType -> m ProbType #

Ord ProbType Source # 
Instance details

Defined in NLP.Concraft.Polish.DAG.Format.Base

Show ProbType Source # 
Instance details

Defined in NLP.Concraft.Polish.DAG.Format.Base

showSent :: ShowCfg -> [AnnoSent] -> Text Source #

Show the given sentence.

showData :: ShowCfg -> [[AnnoSent]] -> Text Source #

Show entire data.

Parsing

parseData :: Text -> [Sent Tag] Source #

Parse the text in the DAG format.

parseSent :: Text -> Sent Tag Source #

Parse sentence in the DAG format.