lib/browser_web_data_entity_sumarization/entity_sumarization_predicates_similarity.rb
###
# The method add new different values to local storage.
#
# @param [Array<String>] values
The method add new different values to local storage.
The method add new different values to local storage .
def add_different(values)
        values = values.map { |p| p.to_s }.uniq.sort
        group_key = PredicatesSimilarity.get_key(values)
        unless @different_predicates.include?(group_key)
          @different_predicates << group_key
          @new_diff_counter ||= 0
          @new_diff_counter += 1
          if @new_diff_counter > 100
            store_different_predicates
            @new_diff_counter = 0
          end
        end
      end
def add_different ( values ) values = values . map { | p | p . to_s } . uniq . sort group_key = PredicatesSimilarity . get_key ( values ) unless @different_predicates . include? ( group_key ) @different_predicates << group_key @new_diff_counter ||= 0 @new_diff_counter += 1 if @new_diff_counter > 100 store_different_predicates @new_diff_counter = 0 end end end
The method add new different values to local storage.
The method add new different values to local storage .
values
<not_specific>
<not_specific>
None