Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parse :: Text -> Either String SentiWordNet
- data SentiWordNet = SentiWordNet {}
- data Entry = Entry {}
- data SynsetTerm = SynsetTerm {}
- data POS
- type SentiWordNetLookup = HashMap (POS, Text) [SentiWordNetLookupItem]
- data SentiWordNetLookupItem = SentiWordNetLookupItem {
- lookPos :: Int
- lookPosScore :: Decimal
- lookNegScore :: Decimal
- toSentiWordNetLookup :: SentiWordNet -> SentiWordNetLookup
- parseSentiWordNet :: Parser SentiWordNet
- parsePOS :: Parser POS
- parseDecimal :: Parser Decimal
- parseInt :: Parser Int
- parseEntry :: Parser Entry
- parseSynsetTerm :: Parser SynsetTerm
- parseComment :: Parser String
- test :: IO ()
Documentation
data SynsetTerm Source #
type SentiWordNetLookup = HashMap (POS, Text) [SentiWordNetLookupItem] Source #
Datastructure for efficient lookupScoreByPosAndName
lookups
toSentiWordNetLookup :: SentiWordNet -> SentiWordNetLookup Source #
Convert function
internal stuff
parseEntry :: Parser Entry Source #