NaturalLanguageAlphabets-0.0.1.0: Alphabet and word representations

Safe HaskellNone
LanguageHaskell2010

NLP.Scoring.SimpleUnigram.Import

Synopsis

Documentation

data ParsedLine Source

Each parsed line gives a set of characters, or tells us a score.

TODO add LPimport which starts a recursive import (note: start by storing the hash or whatever of the file to be imported so that we can comment on circular imports)

parseLine :: Text -> ParsedLine Source

Here we simple parse individual lines.

genSimpleScoring :: Text -> SimpleScoring Source

Parses a bytestring to create a simple scoring. We don't do much error checking, many of the bindings below will easily fail.

TODO obviously: implement error-checking

simpleScoreFromFile :: FilePath -> IO SimpleScoring Source

parse a simple scoring file.