Safe Haskell | None |
---|
- data Tier = Tier {}
- data Tag = Tag {}
- select :: Tier -> Tag -> Tag
- splitWord :: TierConf -> Word Tag -> Word (Tag, Tag)
- splitSent :: TierConf -> Sent Tag -> Sent (Tag, Tag)
- 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 :: Sent t -> Sent Ob t
- type TierConf = (Tier, Tier)
- tear :: TierConf -> Tag -> (Tag, Tag)
- deTear :: TierConf -> Word Tag -> (Tag, Tag) -> Tag
- deTears :: TierConf -> Sent Tag -> [(Tag, Tag)] -> [Tag]
- data Disamb
- disamb :: Disamb -> Sent Tag -> [Tag]
- tagFile :: Text -> Disamb -> FilePath -> IO Text
- learn :: SgdArgs -> FilePath -> Text -> TierConf -> FilePath -> Maybe FilePath -> IO Disamb
Documentation
A tier description.
A tag with optional POS.
splitWord :: TierConf -> Word Tag -> Word (Tag, Tag)Source
Split tags between two layers. TODO: Add support for multiple layers.
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.
deTear :: TierConf -> Word Tag -> (Tag, Tag) -> TagSource
Unsplit the list of tag pairs. TODO: It can be done without the help of original word.
Tag the file.