Class: Sentimentalizer
- Inherits:
-
Object
- Object
- Sentimentalizer
- Defined in:
- lib/sentimentalizer.rb
Class Method Summary collapse
Class Method Details
.analyze(sentence, as_json = nil) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/sentimentalizer.rb', line 13 def self.analyze(sentence, as_json=nil) unless as_json @analyser.analyse(sentence) else @analyser.analyse(sentence).to_json end end |