Safe Haskell | None |
---|
Basic types for dictionary handling.
- type Form = Text
- isMultiWord :: Form -> Bool
- type NeType = Text
- data Entry = Entry {}
- type NeDict = Map Form (Set NeType)
- mkDict :: [Entry] -> NeDict
- siftDict :: (Form -> Set NeType -> Bool) -> NeDict -> NeDict
- saveDict :: FilePath -> NeDict -> IO ()
- loadDict :: FilePath -> IO NeDict
- merge :: [NeDict] -> NeDict
- diff :: [NeDict] -> [NeDict]
Lexicon entry
isMultiWord :: Form -> BoolSource
Is the form a multiword one?
A Named Entity entry from the LMF dictionary.
Dictionary
type NeDict = Map Form (Set NeType)Source
A NeDict is a map from forms to NE types. Each NE may be annotated with multiple types.
siftDict :: (Form -> Set NeType -> Bool) -> NeDict -> NeDictSource
Remove dictionary entries which do not satisfy the predicate.