lib/opener/opinion_detector_basic/kaf/opinion.rb
##
# Obtain the opinion holders from the terms that belong to the same
# sentence.
#
Obtain the opinion holders from the terms that belong to the same
sentence.
Obtain the opinion holders from the terms that belong to the same sentence .
def obtain_holders(sentences, language)
          sentence_terms = sentences[sentence]
          sentence_terms.each do |term|
            if OPINION_HOLDERS[language]&.include?(term.lemma)
              @holders << term.id
              break
            end
          end
        end
def obtain_holders ( sentences , language ) sentence_terms = sentences [ sentence ] sentence_terms . each do | term | if OPINION_HOLDERS [ language ] &. include? ( term . lemma ) @holders << term . id break end end end
Obtain the opinion holders from the terms that belong to the same
sentence.
Obtain the opinion holders from the terms that belong to the same sentence .
sentences
<not_specific>
language
<not_specific>