Skip to content

A simple sentiment analyzer, based on clojure-opennlp

Notifications You must be signed in to change notification settings

zmedelis/sentimental

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sentimental

A basic sentiment analyzer, based on clojure-opennlp and using the subjectivity lexicon. Check out the training file in src/models/sentiment.train. Also, the subjectivity lexicon parsed into JSON is provided under src/parsed_lexicon.json.

Usage

In the REPL (after running lein repl):

(use 'sentimental.core)
(categorize "I am happy!")
; if working with a lot of text, compact will provide
; a "bag-of-words" representation with stop words removed
; and stemming of each word (using Snowball)
(categorize (compact long-document))

License

Distributed under the Eclipse Public License, the same as Clojure.

About

A simple sentiment analyzer, based on clojure-opennlp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%