| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
NLP.SentiwordnetParser
Contents
- 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
Constructors
| Entry | |
Constructors
| Noun | |
| Verb | |
| Adjective | |
| AdjectiveSatellite | |
| Adverb |
type SentiWordNetLookup = HashMap (POS, Text) [SentiWordNetLookupItem] Source #
Datastructure for efficient lookupScoreByPosAndName lookups
data SentiWordNetLookupItem Source #
Constructors
| SentiWordNetLookupItem | |
Fields
| |
toSentiWordNetLookup :: SentiWordNet -> SentiWordNetLookup Source #
Convert function
internal stuff
parseEntry :: Parser Entry Source #