nerf-0.5.4.1: Nerf, a named entity recognition tool based on linear-chain CRFs

Safe HaskellNone
LanguageHaskell2010

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

Instances
Binary Nerf Source # 
Instance details

Defined in NLP.Nerf

Methods

put :: Nerf -> Put #

get :: Get Nerf #

putList :: [Nerf] -> Put #

train Source #

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 Word Source #

Perform named entity recognition (NER) using the Nerf.

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

Show results of observation extraction on the input ENAMEX file.