chatter-0.4.0.0: A library of simple NLP algorithms.

Safe HaskellNone
LanguageHaskell2010

NLP.Chunk

Synopsis

Documentation

train :: (ChunkTag c, Tag t) => Chunker c t -> [ChunkedSentence c t] -> IO (Chunker c t) Source

chunkerTable :: (ChunkTag c, Tag t) => Map ByteString (ByteString -> Either String (Chunker c t)) Source

The default table of tagger IDs to readTagger functions. Each tagger packaged with Chatter should have an entry here. By convention, the IDs use are the fully qualified module name of the tagger package.

saveChunker :: (ChunkTag c, Tag t) => Chunker c t -> FilePath -> IO () Source

Store a Chunker to disk.

loadChunker :: (ChunkTag c, Tag t) => FilePath -> IO (Chunker c t) Source

Load a Chunker from disk, optionally gunzipping if needed. (based on file extension)