Safe Haskell | None |
---|
Simple format for morphosyntax representation which assumes that all tags have a textual representation with no spaces inside and that one of the tags indicates unknown words.
- data Space
- data Token = Token {}
- data Interp = Interp {}
- fromTok :: Token -> (Word Text, Choice Text)
- choose :: Token -> Set Text -> Token
- addInterps :: Bool -> Token -> [Interp] -> Token
- addNones :: Bool -> Token -> [Text] -> Token
- readPlain :: Text -> FilePath -> IO [[Token]]
- parsePlain :: Text -> Text -> [[Token]]
- parseSent :: Text -> Text -> [Token]
- writePlain :: Text -> FilePath -> [[Token]] -> IO ()
- showPlain :: Text -> [[Token]] -> Text
- showSent :: Text -> [Token] -> Text
- showWord :: Text -> Token -> Text
Types
A token.
Interface
choose :: Token -> Set Text -> TokenSource
Mark all interpretations with tag component beeing a member of the given choice set with disamb annotations.
addInterps :: Bool -> Token -> [Interp] -> TokenSource
Add new interpretations with given disamb annotation.
addNones :: Bool -> Token -> [Text] -> TokenSource
Add new interpretations with None base and given disamb annotation.
Parsing
parsePlain :: Text -> Text -> [[Token]]Source