lib/opener/opinion_detector_basic/kaf/document.rb
##
# Remove the opinions layer from the KAF file if it exists and add a new
# one.
Remove the opinions layer from the KAF file if it exists and add a new
one.
Remove the opinions layer from the KAF file if it exists and add a new one .
def add_opinions_layer
          existing = document.at_xpath('KAF/opinions')
          existing.remove if existing
          new_node 'opinions', 'KAF'
        end
def add_opinions_layer existing = document . at_xpath ( 'KAF/opinions' ) existing . remove if existing new_node 'opinions' , 'KAF' end
Remove the opinions layer from the KAF file if it exists and add a new
one.
Remove the opinions layer from the KAF file if it exists and add a new one .