Safe Haskell | None |
---|
- type Ox t a = Ox (Word t) Text a
- type Schema t a = Vector (Word t) -> Int -> Ox t a
- type Ob = ([Int], Text)
- schema :: Schema t ()
- schematize :: Ord t => Sent t -> Sent Ob t
- data Guesser t = Guesser {}
- guess :: Ord t => Int -> Guesser t -> Sent t -> [[t]]
- tagFile :: Int -> Guesser Text -> FilePath -> IO Text
- learn :: SgdArgs -> Text -> FilePath -> Maybe FilePath -> IO (Guesser Text)
Documentation
type Ox t a = Ox (Word t) Text aSource
The Ox monad specialized to word token type and text observations. TODO: Move to monad-ox package from here and from the nerf library.
type Schema t a = Vector (Word t) -> Int -> Ox t aSource
A schema is a block of the Ox computation performed within the context of the sentence and the absolute sentence position.
An observation consist of an index (of list type) and an actual observation value.
schematize :: Ord t => Sent t -> Sent Ob tSource
Schematize the input sentence with according to schema
rules.
A guesser represented by the conditional random field.
guess :: Ord t => Int -> Guesser t -> Sent t -> [[t]]Source
Determine the k
most probable labels for each unknown word
in the sentence.