lib/browser_web_data_entity_sumarization/entity_sumarization_statistics.rb
###
# The method allow to update knowledge base by every entity class type.
#
# @param [Hash] new_data
The method allow to update knowledge base by every entity class type.
The method allow to update knowledge base by every entity class type .
def update_knowledge_base(new_data)
        path = "#{@results_dir_path}/knowledge_base.json"
        old_data = ensure_load_json(path, {}, symbolize_names: true)
        File.write(path, JSON.pretty_generate(old_data.merge(new_data)))
      end
def update_knowledge_base ( new_data ) path = "#{@results_dir_path}/knowledge_base.json" old_data = ensure_load_json ( path , { } , symbolize_names : true ) File . write ( path , JSON . pretty_generate ( old_data . merge ( new_data ) ) ) end
The method allow to update knowledge base by every entity class type.
The method allow to update knowledge base by every entity class type .
new_data
<not_specific>
<not_specific>
None