wordcloud from bib
Create a wordcloud from .bib file
using Bibliography, WordCloud
function all_words(bib_file)
imported_bib = import_bibtex(bib_file)
words = ""
for ref in keys(imported_bib)
words = string(words, lowercase(imported_bib[ref].title), " ")
end
words
end
path = "mybiblio/"
words = all_words(path*"mybib.bib")
stopwords = WordCloud.stopwords_en ∪ ["using", "application"]
cl_words = processtext(words, maxnum = 200, minlength = 4, stopwords = stopwords)
wc = wordcloud(cl_words,
mask=shape(box, 500 * 2, 350 * 2, cornerradius=10 * 2),
fonts = "menlo", colors = :seaborn_dark)
generate!(wc)
paint(wc, "wordcloud.png")