concraft-0.8.3: Morphological disambiguation based on constrained CRFs

Safe HaskellNone

NLP.Concraft.Analysis

Contents

Description

Morphosyntactic analysis utilities.

See reAnaSent function for a description of how reanalsis is performed. At some point it would be nice to change the entire process so that sentence-level segmentation is also taken from the reanalysed data.

Synopsis

Analysis

type Analyse w t = Text -> IO (Sent w t)Source

An analyser performs word-level segmentation and morphological analysis.

Reanalysis

reAnaSent :: Word w => Tagset -> Analyse w Tag -> SentO w Tag -> IO (Sent w Tag)Source

Reanalyse sentence.

From the reference sentence the function takes:

  • Word-level segmentation
  • Chosen interpretations (tags)

From the reanalysed sentence the function takes:

  • Potential interpretations

reAnaPar :: Word w => Tagset -> Analyse w Tag -> [SentO w Tag] -> IO [Sent w Tag]Source

Reanalyse paragraph.