Safe Haskell | None |
---|
- data Tagset = Tagset {}
- type Attr = Text
- type AttrVal = Text
- type POS = Text
- type Optional = Bool
- domain :: Tagset -> Attr -> Set AttrVal
- rule :: Tagset -> POS -> [(Attr, Optional)]
- parseTagset :: String -> String -> Tagset
- data Tag = Tag {}
- expand :: Tagset -> Tag -> [Tag]
- tagSim :: Tag -> Tag -> Int
- parseTag :: Tagset -> Text -> Tag
- showTag :: Tagset -> Tag -> Text
Tagset
The tagset consists of a domain for each attribute name and of a parsing rule for each part of speech.
Parsing
parseTagset :: String -> String -> TagsetSource
Parse the textual representation of the tagset. The first argument should be the name of the source.
Tag
The morphosyntactic tag consists of the POS value and corresponding attribute values.