nerf-0.5.0: Nerf, the named entity recognition tool based on linear-chain CRFs

Safe HaskellNone

NLP.Nerf

Description

Main module of the Nerf tool.

Synopsis

Documentation

data Nerf Source

A Nerf consists of the observation schema configuration and the CRF model.

Constructors

Nerf 

Fields

schemaConf :: SchemaConf
 
crf :: CRF Ob Lb
 

Instances

trainSource

Arguments

:: SgdArgs

Args for SGD

-> SchemaConf

Observation schema configuration

-> FilePath

Train data (ENAMEX)

-> Maybe FilePath

Maybe eval data (ENAMEX)

-> IO Nerf

Nerf with resulting codec and model

Train Nerf on the input data using the SGD method.

ner :: Nerf -> String -> NeForest NE WordSource

Perform named entity recognition (NER) using the Nerf.

tryOx :: SchemaConf -> FilePath -> IO ()Source

Show results of observation extraction on the input ENAMEX file.