Safe Haskell | None |
---|
- type Split r t = r -> t
- type TrainCRF o t c = IO [SentL o t] -> Maybe (IO [SentL o t]) -> IO c
- type TagCRF o t = Sent o t -> [t]
- disamb :: (Ord r, Ord t) => Schema t a -> Split r t -> TagCRF Ob t -> Sent r -> [r]
- disambSent :: Ord t => Sent s w -> Schema t a -> Split Tag t -> TagCRF Ob t -> s -> s
- disambDoc :: (Functor f, Ord t) => Doc f s w -> Schema t a -> Split Tag t -> TagCRF Ob t -> Text -> Text
- trainOn :: (Foldable f, Ord t) => Doc f s w -> Schema t a -> Split Tag t -> TrainCRF Ob t c -> FilePath -> Maybe FilePath -> IO c
Documentation
Split is just a function from an original tag form to a complex tag form.
= IO [SentL o t] | Training data |
-> Maybe (IO [SentL o t]) | Maybe evalation data |
-> IO c | Resulting model |
CRF training function.
disamb :: (Ord r, Ord t) => Schema t a -> Split r t -> TagCRF Ob t -> Sent r -> [r]Source
Perform context-sensitive disambiguation.
disambSent :: Ord t => Sent s w -> Schema t a -> Split Tag t -> TagCRF Ob t -> s -> sSource
Tag the sentence.