Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-sentiment Reference Manual, version 0.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 04:02:05 2022 GMT+0.
Next: Systems, Previous: The cl-sentiment Reference Manual, Up: The cl-sentiment Reference Manual [Contents][Index]
cl-sentiment is a Common Lisp library that uses the AFINN-111 word list to perform sentiment analysis on arbitrary text.
Inspired by https://github.com/thisandagain/sentiment, it's particularly suited to looking at Twitter tweets.
The AFINN word list is by Finn Arup Nielsen available from http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010
You might also like to read his paper:
"A new ANEW: Evaluation of a word list for sentiment analysis in microblogs", Proceedings of the ESWC2011 Workshop on 'Making Sense of Microposts': Big things come in small packages 718 in CEUR Workshop Proceedings : 93-98. 2011 May. http://arxiv.org/abs/1103.2903
The AFINN files are copyright protected and distributed under the terms of the Open Database License (ODbL) v1.0, http://www.opendatacommons.org/licenses/odbl/1.0/
cl-sentiment is now available via Quicklisp.
Use initialize to initialize cl-sentiment with the default sentiment word scores.
Call sentiment with some arbitrary text and it returns two values - the sentiment score and the comparative sentiment score. Positive values convey positive sentiment; negative values convey negative sentiment.
CL-USER> (ql:quickload "cl-sentiment")
...
CL-USER> (cl-sentiment:initialize)
#<HASH-TABLE :TEST EQUAL :COUNT 2477 {1003A54463}>
CL-USER> (cl-sentiment:sentiment "Cats are totally amazing!")
4
1
CL-USER>
Rob Blackwell
December 2012
Next: Files, Previous: Introduction, Up: The cl-sentiment Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
A sentiment analysis library for Common Lisp.
Rob Blackwell
0.0.1
Next: Packages, Previous: Systems, Up: The cl-sentiment Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: cl-sentiment/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
cl-sentiment (system).
Next: cl-sentiment/sentiment.lisp, Previous: cl-sentiment/cl-sentiment.asd, Up: Lisp [Contents][Index]
cl-sentiment (system).
Next: cl-sentiment/tests.lisp, Previous: cl-sentiment/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
cl-sentiment (system).
Previous: cl-sentiment/sentiment.lisp, Up: Lisp [Contents][Index]
sentiment.lisp (file).
cl-sentiment (system).
Next: Definitions, Previous: Files, Up: The cl-sentiment Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The cl-sentiment Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Previous: Public Interface, Up: Public Interface [Contents][Index]
Initializes cl-sentiment with a default word-score table.
Loads a word score table from a tab separated file.
Returns the sentiment measure for the given text.
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Previous: Special variables, Up: Internals [Contents][Index]
Returns a list of words in the given text using simplistic tokenization.
Previous: Definitions, Up: The cl-sentiment Reference Manual [Contents][Index]
Jump to: | F I L S W |
---|
Jump to: | F I L S W |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*word-scores* : | Private special variables | ||
| |||
S | |||
Special Variable, *word-scores* : | Private special variables | ||
|
Jump to: | *
S |
---|
Jump to: | C F P S T |
---|
Jump to: | C F P S T |
---|