Safe Haskell | None |
---|
- newtype Guesser t = Guesser {}
- guess :: Ord t => Int -> Schema t a -> Guesser t -> Sent t -> [[t]]
- include :: Ord t => Sent t -> [[t]] -> Sent t
- guessSent :: Sent s w -> Int -> Schema Tag a -> Guesser Tag -> s -> s
- guessDoc :: Functor f => Doc f s w -> Int -> Schema Tag a -> Guesser Tag -> Text -> Text
- trainOn :: Foldable f => Doc f s w -> Schema Tag a -> SgdArgs -> FilePath -> Maybe FilePath -> IO (Guesser Tag)
Documentation
A guesser represented by the conditional random field.
guess :: Ord t => Int -> Schema t a -> Guesser t -> Sent t -> [[t]]Source
Determine the k
most probable labels for each word in the sentence.
guessSent :: Sent s w -> Int -> Schema Tag a -> Guesser Tag -> s -> sSource
Tag sentence in external format. Selected interpretations (tags correct within the context) will be preserved.