lib/opener/opinion_detector_basic/kaf/opinion.rb
##
# Returns the polarity of the opinion.
#
# @return [String]
#
Returns the polarity of the opinion.
Returns the polarity of the opinion .
def polarity
          @polarity ||= if strength > 0
            'positive'
          elsif strength < 0
            'negative'
          else
            'neutral'
          end
        end
def polarity @polarity ||= if strength > 0 'positive' elsif strength < 0 'negative' else 'neutral' end end
Returns the polarity of the opinion.
Returns the polarity of the opinion .
None
String