| Safe Haskell | None |
|---|
NLP.Nerf
Description
Main module of the Nerf tool.
- data Nerf = Nerf {
- schemaConf :: SchemaConf
- crf :: CRF Ob Lb
- train :: SgdArgs -> SchemaConf -> FilePath -> Maybe FilePath -> IO Nerf
- ner :: Nerf -> String -> NeForest NE Word
- tryOx :: SchemaConf -> FilePath -> IO ()
- module NLP.Nerf.Types
Documentation
A Nerf consists of the observation schema configuration and the CRF model.
Constructors
| Nerf | |
Fields
| |
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.
module NLP.Nerf.Types