lib/opener/opinion_detector_basic/base_processor.rb
##
# Processes the input and returns the new KAF output.
# @return [String]
#
Processes the input and returns the new KAF output.
Processes the input and returns the new KAF output .
def process
        document.add_opinions_layer
        opinions.each.with_index do |opinion, index|
          document.add_opinion opinion, index+1
        end
        document.add_linguistic_processor
        if document.pretty then pretty_print document else document.to_xml end
      end
def process document . add_opinions_layer opinions . each . with_index do | opinion , index | document . add_opinion opinion , index + 1 end document . add_linguistic_processor if document . pretty then pretty_print document else document . to_xml end end
Processes the input and returns the new KAF output.
Processes the input and returns the new KAF output .
None
String