Skip to content
Snippets Groups Projects
Commit cc3b16e4 authored by bfs15's avatar bfs15
Browse files

added task to retrieve tag frequency information

parent f22c2b29
No related branches found
No related tags found
No related merge requests found
...@@ -41,4 +41,12 @@ task generate_tag_frequency_hash: :environment do ...@@ -41,4 +41,12 @@ task generate_tag_frequency_hash: :environment do
File.open("tag_frequency_hash.json", "w+") do |f| File.open("tag_frequency_hash.json", "w+") do |f|
f << hash.to_json f << hash.to_json
end end
File.open("community_input.txt", "w+") do |f|
hash.each do |id1, ids2Hash|
ids2Hash.each do |id2, value|
f << "#{id1}, #{id2}, #{value} \n"
end
end
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment